Interface IReadOnlyNavigationBase
- Namespace
- Microsoft.EntityFrameworkCore.Metadata
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents a navigation property which can be used to navigate a relationship.
public interface IReadOnlyNavigationBase : IReadOnlyPropertyBase, IReadOnlyAnnotatable
- Inherited Members
- Extension Methods
Remarks
See Modeling entity types and relationships for more information and examples.
Properties
DeclaringEntityType
Gets the entity type that this navigation property belongs to.
IReadOnlyEntityType DeclaringEntityType { get; }
Property Value
Inverse
Gets the inverse navigation.
IReadOnlyNavigationBase? Inverse { get; }
Property Value
IsCollection
Gets a value indicating whether the navigation property is a collection property.
bool IsCollection { get; }
Property Value
IsEagerLoaded
Gets a value indicating whether this navigation should be eager loaded by default.
bool IsEagerLoaded { get; }
Property Value
LazyLoadingEnabled
Determines whether or not this navigation should lazy-load if lazy-loading is enabled and a mechanism for lazy-loading has been configured in the model.
bool LazyLoadingEnabled { get; }
Property Value
Remarks
See Lazy loading for more information and examples.
TargetEntityType
Gets the entity type that this navigation property will hold an instance(s) of.
IReadOnlyEntityType TargetEntityType { get; }