共用方式為


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 為 。

屬性

適用於