NavigationExtensions.IsCollection(INavigation) 方法

定义

注意

Use INavigation.IsCollection

注意

Use IReadOnlyNavigation.IsCollection

获取一个值,该值指示给定的导航属性是否为集合属性。

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

参数

navigation
INavigation

要检查的导航属性。

返回

true 如果这是集合属性,则为 false(如果它是引用属性)。

属性

适用于