ObjectContextOptions.LazyLoadingEnabled Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a Boolean value that determines whether related objects are loaded automatically when a navigation property is accessed.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public bool LazyLoadingEnabled { get; set; }

Property Value

Type: System.Boolean

true if lazy loading is enabled; otherwise, false.

.NET Framework
Available since 4.0
Return to top