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

属性

适用于