Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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:
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:
© 2015 Microsoft