Export (0) Print
Expand All

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 DbSet<TEntity> Cast<TEntity>()
where TEntity : class

Type Parameters


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.
© 2014 Microsoft