SqlTable.Cast<TEntity> Method

Casts the current SqlTable to the generic SqlTable<TEntity> instance.

Namespace:  DbExtensions
Assembly: DbExtensions.dll

Syntax

public SqlTable<TEntity> Cast<TEntity>()
where TEntity : class

Type Parameters

TEntity

The type of the entity.

Return Value

Type: SqlTable<TEntity>
The SqlTable<TEntity> instance for TEntity.

Exceptions

Exception Condition
InvalidOperationException The specified TEntity is not valid for this instance.

See Also

Reference

SqlTable Class
DbExtensions Namespace

© Max Toro Q.