NavigationBuilder<TSource,TTarget>.EnableLazyLoading(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures whether this navigation should be enabled for lazy-loading. Note that a property can only be lazy-loaded if a lazy-loading mechanism such as lazy-loading proxies or ILazyLoader injection has been configured.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<TSource,TTarget> EnableLazyLoading (bool lazyLoadingEnabled = true);
override this.EnableLazyLoading : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<'Source, 'arget (requires 'Source : null and 'arget : null)>
Public Overridable Function EnableLazyLoading (Optional lazyLoadingEnabled As Boolean = true) As NavigationBuilder(Of TSource, TTarget)
Parameters
- lazyLoadingEnabled
- Boolean
A value indicating if the navigation should be enabled for lazy-loading.
Returns
The same builder instance so that multiple configuration calls can be chained.
Remarks
See Lazy loading for more information and examples.
Applies to
Entity Framework