Table of Contents

Interface IMutableNavigationBase

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.dll

Represents a navigation property which can be used to navigate a relationship.

public interface IMutableNavigationBase : IReadOnlyNavigationBase, IMutablePropertyBase, IReadOnlyPropertyBase, IMutableAnnotatable, IReadOnlyAnnotatable
Inherited Members
Extension Methods

Remarks

This interface is used during model creation and allows the metadata to be modified. Once the model is built, IReadOnlyNavigationBase represents a read-only view of the same metadata.

See Modeling entity types and relationships for more information and examples.

Methods

SetIsEagerLoaded(bool?)

Sets a value indicating whether this navigation should be eager loaded by default.

void SetIsEagerLoaded(bool? eagerLoaded)

Parameters

eagerLoaded bool?

A value indicating whether this navigation should be eager loaded by default.

SetLazyLoadingEnabled(bool?)

Sets a value indicating whether this navigation should be enabled for lazy-loading.

void SetLazyLoadingEnabled(bool? lazyLoadingEnabled)

Parameters

lazyLoadingEnabled bool?

A value indicating whether this navigation should enabled for lazy-loading.