DbSet::Cast<TEntity> Method

Entity Framework 5.0

Returns the equivalent generic DbSet<TEntity> object.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

public:
generic<typename TEntity>
where TEntity : ref class 
DbSet<TEntity>^ Cast()

Type Parameters

TEntity

The base type of the object to be cast to the generic set object.

Return Value

Type: System.Data.Entity::DbSet<TEntity>
The generic set object.
Show: