DbSet.Cast<TEntity> Method ()

 

Returns the equivalent generic DbSet<TEntity> object.

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

public DbSet<TEntity> Cast<TEntity>()
where TEntity : class

Return Value

Type: System.Data.Entity.DbSet<TEntity>

The generic set object.

Type Parameters

TEntity

The type of entity for which the set was created.