NavigationEagerLoadingConvention 類別

定義

將巡覽設定為積極式載入之實體類型的慣例。

public class NavigationEagerLoadingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention
type NavigationEagerLoadingConvention = class
    interface IForeignKeyOwnershipChangedConvention
    interface IConvention
Public Class NavigationEagerLoadingConvention
Implements IForeignKeyOwnershipChangedConvention
繼承
NavigationEagerLoadingConvention
實作

備註

如需詳細資訊和範例,請參閱 模型建置慣例

建構函式

NavigationEagerLoadingConvention(ProviderConventionSetBuilderDependencies)

建立 NavigationEagerLoadingConvention 的新執行個體。

屬性

Dependencies

此服務的相依性。

方法

ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder, IConventionContext<Nullable<Boolean>>)

在外鍵的擁有權值變更之後呼叫。

ProcessForeignKeyOwnershipChanged(IConventionRelationshipBuilder, IConventionContext<IConventionRelationshipBuilder>)

在外鍵的擁有權值變更之後呼叫。

適用於