DbQuery Class

Represents a non-generic LINQ to Entities query against a DbContext.


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

public abstract class DbQuery : IOrderedQueryable, 
	IQueryable, IEnumerable, IListSource

The DbQuery type exposes the following members.

Public propertyElementTypeThe IQueryable element type.

Public methodAsNoTrackingReturns a new query where the entities returned will not be cached in the DbContext.
Public methodCast<TElement>Returns the equivalent generic DbQuery<TResult> object.
Public methodEqualsReturns whether the specified query is equal to the current query. (Overrides Object.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns the hash function for the specified query. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the type for the current query.
Public methodIncludeReturns the included non generic LINQ to Entities query against a DbContext.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a String representation of the underlying query. (Overrides Object.ToString().)

Public Extension MethodLoadAn extension method on IQueryable that enumerates the results of the query. This is equivalent to calling ToList without actually creating the list. (Defined by DbExtensions.)

Explicit interface implemetationPrivate propertyIListSource.ContainsListCollectionReturns false.
Explicit interface implemetationPrivate propertyIQueryable.ExpressionThe IQueryable LINQ Expression.
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorGets the enumeration of this query causing it to be executed against the store.
Explicit interface implemetationPrivate methodIListSource.GetListThrows an exception indicating that binding directly to a store query is not supported.
Explicit interface implemetationPrivate propertyIQueryable.ProviderThe IQueryable provider.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.