Share via


DbSet.Cast<TEntity> Method

Definition

Returns the equivalent generic DbSet<TEntity> object.

public System.Data.Entity.DbSet<TEntity> Cast<TEntity> () where TEntity : class;
override this.Cast : unit -> System.Data.Entity.DbSet<'Entity (requires 'Entity : null)> (requires 'Entity : null)
Public Function Cast(Of TEntity As Class) () As DbSet(Of TEntity)

Type Parameters

TEntity

The type of entity for which the set was created.

Returns

The generic set object.

Applies to