NavigationExtensions.IsCollection(INavigation) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
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
The navigation property to check.
true
if this is a collection property, false if it is a reference property.
- Attributes
Product | Versions (Obsolete) |
---|---|
Entity Framework Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1 (5.0, 6.0) |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: