Export (0) Print
Expand All

DbQuery(Of TResult) Class

Entity Framework 5.0

Represents a LINQ to Entities query against a DbContext.

System.Object
  System.Data.Entity.Infrastructure.DbQuery(Of TResult)
    System.Data.Entity.DbSet(Of TEntity)

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

'Declaration
Public Class DbQuery(Of TResult) _
	Implements IOrderedQueryable(Of TResult), IQueryable(Of TResult),  _
	IEnumerable(Of TResult), IOrderedQueryable, IQueryable, IEnumerable,  _
	IListSource
'Usage
Dim instance As DbQuery(Of TResult)

Type Parameters

TResult

The type of entity to query for.

The DbQuery(Of TResult) type exposes the following members.

  NameDescription
Public methodAsNoTrackingReturns a new query where the entities returned will not be cached in the DbContext.
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 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 operatorStatic memberWidening(DbQuery(Of TResult) to DbQuery)Returns a new instance of the non-generic DbQuery class for this query.
Top

  NameDescription
Public Extension MethodAsNoTracking(Of TResult)Returns a new query where the entities returned will not be cached in the DbContext or ObjectContext. (Defined by DbExtensions.)
Public Extension MethodInclude(Of TResult)(String)Overloaded. Specifies the related objects to include in the query results. (Defined by DbExtensions.)
Public Extension MethodInclude(Of TResult, TProperty)(Expression(Of Func(Of TResult, TProperty)))Overloaded. Specifies the related objects to include in the query results. (Defined by DbExtensions.)
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.ElementTypeThe IQueryable element type.
Explicit interface implemetationPrivate propertyIQueryable.ExpressionThe IQueryable LINQ Expression.
Explicit interface implemetationPrivate methodIEnumerable(Of TResult).GetEnumeratorGets the enumeration of this query causing it to be executed against the store.
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.
Show:
© 2014 Microsoft