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

DbContext.Set Method (Type)

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 Function Set ( _
	entityType As Type _
) As DbSet
Dim instance As DbContext 
Dim entityType As Type 
Dim returnValue As DbSet 

returnValue = instance.Set(entityType)


Type: System.Type

The type of entity for which a set should be returned.

Return Value

Type: System.Data.Entity.DbSet
A DbSetfor the given entity type.

See the DbSet class for more details.

© 2015 Microsoft