共用方式為


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>

與慣例執行相關聯的其他資訊。

適用於