DbQuery.Cast<TElement> Method ()

 

Returns the equivalent generic DbQuery<TResult> object.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public DbQuery<TElement> Cast<TElement>()

Return Value

Type: System.Data.Entity.Infrastructure.DbQuery<TElement>

The generic set object.

Type Parameters

TElement

The type of element for which the query was created.