src/Shared/EntityFramework/Infrastructure/DbEntityEntry`.cs
/// <summary>
/// Gets an object that represents the collection navigation property from this
/// entity to a collection of related entities.
/// </summary>
/// <typeparam name="TElement"> The type of elements in the collection. </typeparam>
/// <param name="navigationProperty"> The name of the navigation property. </param>
/// <returns> An object representing the navigation property. </returns>
Gets an object that represents the collection navigation property from this
entity to a collection of related entities.
Gets an object that represents the collection navigation property from this entity to a collection of related entities .
public DbCollectionEntry<TEntity, TElement> Collection<TElement>(string navigationProperty)
            where TElement : class
        {
            Check.NotEmpty(navigationProperty, "navigationProperty");
            return
                DbCollectionEntry<TEntity, TElement>.Create(
                    _internalEntityEntry.Collection(navigationProperty, typeof(TElement)));
        }
public DbCollectionEntry < TEntity , TElement > Collection < TElement > ( string navigationProperty ) where TElement : class { Check . NotEmpty ( navigationProperty , " " ) ; return DbCollectionEntry < TEntity , TElement > . Create ( _internalEntityEntry . Collection ( navigationProperty , typeof ( TElement ) ) ) ; }
Gets an object that represents the collection navigation property from this
entity to a collection of related entities.
Gets an object that represents the collection navigation property from this entity to a collection of related entities .
An object representing the navigation property.
An object representing the navigation property .
navigationProperty
string
The name of the navigation property.
The name of the navigation property .
typeparam
The type of elements in the collection.
The type of elements in the collection .