DbSet.Cast(TEntity) Method

Entity Framework 5.0

Returns the equivalent generic DbSet(TEntity) object.

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

member Cast : unit -> DbSet<'TEntity>  when 'TEntity : not struct

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: