Dela via


ForeignKeyExtensions.GetNavigation(IForeignKey, Boolean) Method

Definition

Returns a navigation associated with this foreign key.

public static Microsoft.EntityFrameworkCore.Metadata.INavigation GetNavigation (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, bool pointsToPrincipal);
static member GetNavigation : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * bool -> Microsoft.EntityFrameworkCore.Metadata.INavigation
<Extension()>
Public Function GetNavigation (foreignKey As IForeignKey, pointsToPrincipal As Boolean) As INavigation

Parameters

foreignKey
IForeignKey

The foreign key.

pointsToPrincipal
Boolean

A value indicating whether the navigation is on the dependent type pointing to the principal type.

Returns

A navigation associated with this foreign key or null.

Applies to