Table of Contents

Interface INavigation

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

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

public interface INavigation : IReadOnlyNavigation, INavigationBase, IReadOnlyNavigationBase, IPropertyBase, IReadOnlyPropertyBase, IAnnotatable, 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.

IEntityType DeclaringEntityType { get; }

Property Value

IEntityType

ForeignKey

Gets the foreign key that defines the relationship this navigation property will navigate.

IForeignKey ForeignKey { get; }

Property Value

IForeignKey

Inverse

Gets the inverse navigation.

INavigation? Inverse { get; }

Property Value

INavigation

TargetEntityType

Gets the entity type that this navigation property will hold an instance(s) of.

IEntityType TargetEntityType { get; }

Property Value

IEntityType