Dela via


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.

public static bool IsDependentToPrincipal (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
[System.Diagnostics.DebuggerStepThrough]
public static bool IsDependentToPrincipal (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use INavigation.IsOnDependent")]
public static bool IsDependentToPrincipal (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IReadOnlyNavigation.IsOnDependent")]
public static bool IsDependentToPrincipal (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
static member IsDependentToPrincipal : Microsoft.EntityFrameworkCore.Metadata.INavigation -> bool
[<System.Diagnostics.DebuggerStepThrough>]
static member IsDependentToPrincipal : Microsoft.EntityFrameworkCore.Metadata.INavigation -> bool
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use INavigation.IsOnDependent")>]
static member IsDependentToPrincipal : Microsoft.EntityFrameworkCore.Metadata.INavigation -> bool
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use IReadOnlyNavigation.IsOnDependent")>]
static member IsDependentToPrincipal : Microsoft.EntityFrameworkCore.Metadata.INavigation -> bool
<Extension()>
Public Function IsDependentToPrincipal (navigation As INavigation) As Boolean

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