Table of Contents

Interface INavigationBase

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

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

public interface 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

Inverse

Gets the inverse navigation.

INavigationBase? Inverse { get; }

Property Value

INavigationBase

TargetEntityType

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

IEntityType TargetEntityType { get; }

Property Value

IEntityType

Methods

GetCollectionAccessor()

Gets the IClrCollectionAccessor for this navigation property, if it's a collection navigation.

IClrCollectionAccessor? GetCollectionAccessor()

Returns

IClrCollectionAccessor

The accessor.

SetIsLoadedWhenNoTracking(object)

Calls Microsoft.EntityFrameworkCore.Infrastructure.ILazyLoader.SetLoaded(System.Object,System.String,System.Boolean) for a INavigationBase to mark it as loaded when a no-tracking query has eagerly loaded this relationship.

void SetIsLoadedWhenNoTracking(object entity)

Parameters

entity object

The entity for which the navigation has been loaded.