Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

DbQuery Class

Entity Framework 5.0

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

System.Object
  System.Data.Entity.Infrastructure.DbQuery
    System.Data.Entity.DbSet

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.

  NameDescription
Public propertyElementTypeThe IQueryable element type.
Top
  NameDescription
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().)
Top
  NameDescription
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.)
Top
  NameDescription
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.
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.