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>

一个 值,该值指示默认情况下是否应预先加载此导航。

适用于