IForeignKey.GetNavigation(Boolean) Method

Definition

Returns a navigation associated with this foreign key.

C#
public virtual Microsoft.EntityFrameworkCore.Metadata.INavigation? GetNavigation(bool pointsToPrincipal);

Parameters

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

Produkt Versioner
Entity Framework Core 6.0, 7.0, 8.0, 9.0, 10.0