Dela via


NavigationExtensions.IsCollection(INavigation) Method

Definition

Caution

Use INavigation.IsCollection

Caution

Use IReadOnlyNavigation.IsCollection

Gets a value indicating whether the given navigation property is a collection property.

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

Parameters

navigation
INavigation

The navigation property to check.

Returns

true if this is a collection property, false if it is a reference property.

Attributes

Applies to