Export (0) Print
Expand All

DbEntityEntry.Collection Method

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)

'Declaration
Public Function Collection ( _
	navigationProperty As String _
) As DbCollectionEntry
'Usage
Dim instance As DbEntityEntry 
Dim navigationProperty As String 
Dim returnValue As DbCollectionEntry 

returnValue = instance.Collection(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:
© 2015 Microsoft