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)
System.Data.Entity.Infrastructure.DbQuery(Of TResult)
System.Data.Entity.DbSet(Of TEntity)
Namespace: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
The DbQuery(Of TResult) type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AsNoTracking | Returns a new query where the entities returned will not be cached in the DbContext. |
![]() | Equals | Returns whether the specified query is equal to the current query. (Overrides Object.Equals(Object).) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | Returns the hash function for the specified query. (Overrides Object.GetHashCode.) |
![]() | GetType | Gets the type for the current query. |
![]() | Include | Returns the included LINQ to entities query against a DbContext. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | Returns a String representation of the underlying query. (Overrides Object.ToString.) |
| Name | Description | |
|---|---|---|
![]() ![]() | Widening(DbQuery(Of TResult) to DbQuery) | Returns a new instance of the non-generic DbQuery class for this query. |
| Name | Description | |
|---|---|---|
![]() | AsNoTracking(Of TResult) | Returns a new query where the entities returned will not be cached in the DbContext or ObjectContext. (Defined by DbExtensions.) |
![]() | Include(Of TResult)(String) | Overloaded. Specifies the related objects to include in the query results. (Defined by DbExtensions.) |
![]() | Include(Of TResult, TProperty)(Expression(Of Func(Of TResult, TProperty))) | Overloaded. Specifies the related objects to include in the query results. (Defined by DbExtensions.) |
![]() | Load | An 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.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IListSource.ContainsListCollection | Returns false. |
![]() ![]() | IQueryable.ElementType | The IQueryable element type. |
![]() ![]() | IQueryable.Expression | The IQueryable LINQ Expression. |
![]() ![]() | IEnumerable(Of TResult).GetEnumerator | Gets the enumeration of this query causing it to be executed against the store. |
![]() ![]() | IEnumerable.GetEnumerator | Gets the enumeration of this query causing it to be executed against the store. |
![]() ![]() | IListSource.GetList | Throws an exception indicating that binding directly to a store query is not supported. |
![]() ![]() | IQueryable.Provider | The IQueryable provider. |
Show:

