IForeignKeyNullNavigationSetConvention.ProcessForeignKeyNullNavigationSet 方法

定义

在外键上的导航设置为 null 后调用。

public void ProcessForeignKeyNullNavigationSet (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder relationshipBuilder, bool pointsToPrincipal, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> context);
abstract member ProcessForeignKeyNullNavigationSet : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder * bool * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> -> unit
Public Sub ProcessForeignKeyNullNavigationSet (relationshipBuilder As IConventionForeignKeyBuilder, pointsToPrincipal As Boolean, context As IConventionContext(Of IConventionNavigation))

参数

relationshipBuilder
IConventionForeignKeyBuilder

外键的生成器。

pointsToPrincipal
Boolean

一个 值, null 该值指示导航是否指向主体实体类型。

context
IConventionContext<IConventionNavigation>

与约定执行关联的其他信息。

适用于