Share via


IReadOnlyForeignKey.GetNavigation(Boolean) Method

Definition

Returns a navigation associated with this foreign key.

public virtual Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation? GetNavigation (bool pointsToPrincipal);
abstract member GetNavigation : bool -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation
override this.GetNavigation : bool -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation
Public Overridable Function GetNavigation (pointsToPrincipal As Boolean) As IReadOnlyNavigation

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