共用方式為


MutableNavigationExtensions.SetIsEagerLoaded 方法

定義

設定值,指出此流覽預設是否應積極式載入。

public static void SetIsEagerLoaded (this Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation navigation, bool? eagerLoaded);
static member SetIsEagerLoaded : Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation * Nullable<bool> -> unit
<Extension()>
Public Sub SetIsEagerLoaded (navigation As IMutableNavigation, eagerLoaded As Nullable(Of Boolean))

參數

navigation
IMutableNavigation

要設定其是否應積極載入的導覽屬性。

eagerLoaded
Nullable<Boolean>

值,指出此流覽是否應該預設為積極式載入。

適用於