通过


ObjectContextOptions.LazyLoadingEnabled 属性

定义

获取或设置一个布尔值,该值确定是否在访问导航属性时自动加载相关对象。

public:
 property bool LazyLoadingEnabled { bool get(); void set(bool value); };
public bool LazyLoadingEnabled { get; set; }
member this.LazyLoadingEnabled : bool with get, set
Public Property LazyLoadingEnabled As Boolean

属性值

true 如果启用了延迟加载,则为否则,为 false.

适用于