語言

NavigationEagerLoadingConvention 類別

定義

一個將導航配置為擁有實體類型且已載入的慣例。

[System.Runtime.CompilerServices.Nullable(0)]
public class NavigationEagerLoadingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention
public class NavigationEagerLoadingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type NavigationEagerLoadingConvention = class
    interface IForeignKeyOwnershipChangedConvention
    interface IConvention
type NavigationEagerLoadingConvention = class
    interface IForeignKeyOwnershipChangedConvention
    interface IConvention
Public Class NavigationEagerLoadingConvention
Implements IForeignKeyOwnershipChangedConvention
繼承
NavigationEagerLoadingConvention
屬性
實作

備註

更多資訊與範例請參閱 模型建構慣例 。

建構函式

名稱 Description
NavigationEagerLoadingConvention(ProviderConventionSetBuilderDependencies)

建立一個新的 實例。NavigationEagerLoadingConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

方法

名稱 Description
ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder, IConventionContext<Nullable<Boolean>>)

在外金鑰的所有權值改變後才被呼叫。

ProcessForeignKeyOwnershipChanged(IConventionRelationshipBuilder, IConventionContext<IConventionRelationshipBuilder>)

在外金鑰的所有權值改變後才被呼叫。

適用於