Export (0) Print
Expand All

DbEntityEntry.Collection Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Gets an object that represents the collection navigation property from this entity to a collection of related entities.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public DbCollectionEntry Collection(
	string navigationProperty
)

Parameters

navigationProperty
Type: System.String
The name of the navigation property.

Return Value

Type: System.Data.Entity.Infrastructure.DbCollectionEntry
An object representing the navigation property.
Show:
© 2014 Microsoft