DbQuery.Cast<TElement> Method

Definition

Returns the equivalent generic DbQuery<TResult> object.

public System.Data.Entity.Infrastructure.DbQuery<TElement> Cast<TElement> ();
member this.Cast : unit -> System.Data.Entity.Infrastructure.DbQuery<'Element>
Public Function Cast(Of TElement) () As DbQuery(Of TElement)

Type Parameters

TElement

The type of element for which the query was created.

Returns

DbQuery<TElement>

The generic set object.

Applies to