Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

DbContext.Set<TEntity> Method

Entity Framework 5.0

Returns a DbSet for the specified type, this allows CRUD operations to be performed for the given entity in the context.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)
public DbSet<TEntity> Set<TEntity>()
where TEntity : class

Type Parameters

TEntity

The entity type for which a set should be returned.

Return Value

Type: System.Data.Entity.DbSet<TEntity>
A DbSet instance for the given entity type.

See the DbSet class for more details.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.