語言

NavigationExtensions.IsDependentToPrincipal(INavigation) 方法

定義

警告

Use INavigation.IsOnDependent

警告

Use IReadOnlyNavigation.IsOnDependent

取得一個值,指示給定的導覽屬性是否為指向主要實體的依賴實體類型上的導覽屬性。

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

參數

navigation
INavigation

要檢查導航屬性。

傳回

true 若所給的導航屬性是指向主實體的依賴實體類型的導航屬性,否則 false。

屬性

適用於