Interface IConventionNavigationBase
- Namespace
- Microsoft.EntityFrameworkCore.Metadata
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents a navigation property which can be used to navigate a relationship.
public interface IConventionNavigationBase : IReadOnlyNavigationBase, IConventionPropertyBase, IReadOnlyPropertyBase, IConventionAnnotatable, 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 Model building conventions for more information and examples.
Methods
GetIsEagerLoadedConfigurationSource()
Returns the configuration source for IsEagerLoaded.
ConfigurationSource? GetIsEagerLoadedConfigurationSource()
Returns
- ConfigurationSource?
The configuration source for IsEagerLoaded.
GetLazyLoadingEnabledConfigurationSource()
Returns the configuration source for LazyLoadingEnabled.
ConfigurationSource? GetLazyLoadingEnabledConfigurationSource()
Returns
- ConfigurationSource?
The configuration source for LazyLoadingEnabled.
SetIsEagerLoaded(bool?, bool)
Sets a value indicating whether this navigation should be eager loaded by default.
bool? SetIsEagerLoaded(bool? eagerLoaded, bool fromDataAnnotation = false)
Parameters
eagerLoaded
bool?A value indicating whether this navigation should be eager loaded by default.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
- bool?
The configured value.
SetLazyLoadingEnabled(bool?, bool)
Sets a value indicating whether this navigation should be lazy-loaded, if lazy-loading is enabled and in place.
bool? SetLazyLoadingEnabled(bool? lazyLoadingEnabled, bool fromDataAnnotation = false)
Parameters
lazyLoadingEnabled
bool?A value indicating whether this navigation should lazy-loaded.
fromDataAnnotation
boolIndicates whether the configuration was specified using a data annotation.
Returns
- bool?
The configured value.