Set Method (Type)
Collapse the table of content
Expand the table of content

DbContext.Set Method (Type)

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)

member Set : 
        entityType:Type -> DbSet


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.

© 2016 Microsoft