Export (0) Print
Expand All

DbEntityEntry(Of TEntity).Collection(Of 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 Function Collection(Of TElement As Class) ( _
	navigationProperty As String _
) As DbCollectionEntry(Of TEntity, TElement)
Dim instance As DbEntityEntry 
Dim navigationProperty As String 
Dim returnValue As DbCollectionEntry(Of TEntity, TElement)

returnValue = instance.Collection(navigationProperty)

Type Parameters


The type of elements in the collection.


Type: System.String

The name of the navigation property.

Return Value

Type: System.Data.Entity.Infrastructure.DbCollectionEntry(Of TEntity, TElement)
An object representing the navigation property.
© 2015 Microsoft