Collection(TElement) Method (String)

DbEntityEntry<TEntity>::Collection<TElement> Method (String)

Entity Framework 5.0

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:
generic<typename TElement>
where TElement : ref class 
DbCollectionEntry<TEntity, TElement>^ Collection(
	String^ navigationProperty
)

Type Parameters

TElement

The type of elements in the collection.

Parameters

navigationProperty
Type: System::String

The name of the navigation property.

Return Value

Type: System.Data.Entity.Infrastructure::DbCollectionEntry<TEntity, TElement>
An object representing the navigation property.
Show:
© 2016 Microsoft