DbCollectionEntry.Cast<TEntity,TElement> Method

Definition

Returns the equivalent generic DbCollectionEntry<TEntity,TElement> object.

public System.Data.Entity.Infrastructure.DbCollectionEntry<TEntity,TElement> Cast<TEntity,TElement> () where TEntity : class;
override this.Cast : unit -> System.Data.Entity.Infrastructure.DbCollectionEntry<'Entity, 'Element (requires 'Entity : null)> (requires 'Entity : null)
Public Function Cast(Of TEntity As Class, TElement As Class) () As DbCollectionEntry(Of TEntity, TElement)

Type Parameters

TEntity

The type of entity on which the member is declared.

TElement

The type of the collection element.

Returns

The equivalent generic object.

Applies to