NavigationExtensions.IsDependentToPrincipal(INavigation) Method

Definition

Caution

Use INavigation.IsOnDependent

Caution

Use IReadOnlyNavigation.IsOnDependent

Gets a value indicating whether the given navigation property is the navigation property on the dependent entity type that points to the principal entity.

C#
public static bool IsDependentToPrincipal (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
C#
[System.Diagnostics.DebuggerStepThrough]
public static bool IsDependentToPrincipal (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
C#
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use INavigation.IsOnDependent")]
public static bool IsDependentToPrincipal (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
C#
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IReadOnlyNavigation.IsOnDependent")]
public static bool IsDependentToPrincipal (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);

Parameters

navigation
INavigation

The navigation property to check.

Returns

true if the given navigation property is the navigation property on the dependent entity type that points to the principal entity, otherwise false.

Attributes

Applies to

Product Versions (Obsolete)
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1 (5.0, 6.0)