DbCollectionEntry.Cast<TEntity, TElement> Method ()
Returns the equivalent generic DbCollectionEntry<TEntity, TElement> object.
Assembly: EntityFramework (in EntityFramework.dll)
public DbCollectionEntry<TEntity, TElement> Cast<TEntity, TElement>() where TEntity : class
Return Value
Type: System.Data.Entity.Infrastructure.DbCollectionEntry<TEntity, TElement>The equivalent generic object.
Type Parameters
- TEntity
The type of entity on which the member is declared.
- TElement
The type of the collection element.