Table of Contents

Interface IMutableSkipNavigation

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

Represents a navigation property that is part of a relationship that is forwarded through a third entity type.

public interface IMutableSkipNavigation : IReadOnlySkipNavigation, 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, ISkipNavigation represents a read-only view of the same metadata.

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

Properties

DeclaringEntityType

Gets the type that this navigation property belongs to.

IMutableEntityType DeclaringEntityType { get; }

Property Value

IMutableEntityType

ForeignKey

Gets the foreign key to the join type.

IMutableForeignKey? ForeignKey { get; }

Property Value

IMutableForeignKey

Inverse

Gets the inverse skip navigation.

IMutableSkipNavigation? Inverse { get; }

Property Value

IMutableSkipNavigation

JoinEntityType

Gets the join type used by the foreign key.

IMutableEntityType? JoinEntityType { get; }

Property Value

IMutableEntityType

TargetEntityType

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

IMutableEntityType TargetEntityType { get; }

Property Value

IMutableEntityType

Methods

SetForeignKey(IMutableForeignKey?)

Sets the foreign key.

void SetForeignKey(IMutableForeignKey? foreignKey)

Parameters

foreignKey IMutableForeignKey

The foreign key. Passing null will result in there being no foreign key associated.

SetInverse(IMutableSkipNavigation?)

Sets the inverse skip navigation.

IMutableSkipNavigation? SetInverse(IMutableSkipNavigation? inverse)

Parameters

inverse IMutableSkipNavigation

The inverse skip navigation. Passing null will result in there being no inverse navigation property defined.

Returns

IMutableSkipNavigation