DbContext.Set(Of 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)

'Declaration
Public Function Set(Of TEntity As Class) As DbSet(Of TEntity)
'Usage
Dim instance As DbContext 
Dim returnValue As DbSet(Of TEntity)

returnValue = instance.Set()

Type Parameters

TEntity

The entity type for which a set should be returned.

Return Value

Type: System.Data.Entity.DbSet(Of TEntity)
A DbSet instance for the given entity type.

See the DbSet class for more details.

Show: