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.

C#
public static bool IsCollection (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
C#
[System.Diagnostics.DebuggerStepThrough]
public static bool IsCollection (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
C#
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use INavigation.IsCollection")]
public static bool IsCollection (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
C#
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IReadOnlyNavigation.IsCollection")]
public static bool IsCollection (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);

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

Product Versions (Obsolete)
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1 (5.0, 6.0)