ObjectQuery Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class implements untyped queries at the object-layer.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1010:CollectionsShouldImplementGenericInterface")]
public abstract class ObjectQuery : System.Collections.IEnumerable, System.ComponentModel.IListSource, System.Data.Entity.Infrastructure.IDbAsyncEnumerable, System.Linq.IOrderedQueryable
type ObjectQuery = class
interface IOrderedQueryable
interface IQueryable
interface IEnumerable
interface IListSource
interface IDbAsyncEnumerable
Public MustInherit Class ObjectQuery
Implements IDbAsyncEnumerable, IEnumerable, IListSource, IOrderedQueryable
- Inheritance
-
ObjectQuery
- Derived
- Attributes
- Implements
Properties
CommandText |
Returns the command text for the query. |
Context |
Gets the object context associated with this object query. |
EnablePlanCaching |
Gets or sets a value that indicates whether the query plan should be cached. |
MergeOption |
Gets or sets how objects returned from a query are added to the object context. |
Parameters |
Gets the parameter collection for this object query. |
Streaming |
Whether the query is streaming or buffering |
Methods
Execute(MergeOption) |
Executes the untyped object query with the specified merge option. |
ExecuteAsync(MergeOption, CancellationToken) |
Asynchronously executes the untyped object query with the specified merge option. |
ExecuteAsync(MergeOption) |
Asynchronously executes the untyped object query with the specified merge option. |
GetResultType() |
Returns information about the result type of the query. |
ToTraceString() |
Returns the commands to execute against the data source. |
Explicit Interface Implementations
IDbAsyncEnumerable.GetAsyncEnumerator() |
Returns an IDbAsyncEnumerator which when enumerated will execute the given SQL query against the database. |
IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through a collection. |
IListSource.ContainsListCollection | |
IListSource.GetList() |
Returns the collection as an IList used for data binding. |
IQueryable.ElementType |
Gets the result element type for this query instance. |
IQueryable.Expression |
Gets the expression describing this query. For queries built using LINQ builder patterns, returns a full LINQ expression tree; otherwise, returns a constant expression wrapping this query. Note that the default expression is not cached. This allows us to differentiate between LINQ and Entity-SQL queries. |
IQueryable.Provider |
Gets the IQueryProvider associated with this query instance. |
Applies to
Entity Framework