ObjectQuery Class

Entity Framework 6.0
 

This class implements untyped queries at the object-layer.

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

System.Object
  System.Data.Entity.Core.Objects.ObjectQuery
    System.Data.Entity.Core.Objects.ObjectQuery<T>

[SuppressMessageAttribute("Microsoft.Design", "CA1010:CollectionsShouldImplementGenericInterface")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
public abstract class ObjectQuery : IOrderedQueryable, IQueryable, 
	IEnumerable, IListSource, IDbAsyncEnumerable

NameDescription
System_CAPS_pubpropertyCommandText

Returns the command text for the query.

System_CAPS_pubpropertyContext

Gets the object context associated with this object query.

System_CAPS_pubpropertyEnablePlanCaching

Gets or sets a value that indicates whether the query plan should be cached.

System_CAPS_pubpropertyMergeOption

Gets or sets how objects returned from a query are added to the object context.

System_CAPS_pubpropertyParameters

Gets the parameter collection for this object query.

System_CAPS_pubpropertyStreaming

Whether the query is streaming or buffering

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecute(MergeOption)

Executes the untyped object query with the specified merge option.

System_CAPS_pubmethodExecuteAsync(MergeOption)

Asynchronously executes the untyped object query with the specified merge option.

System_CAPS_pubmethodExecuteAsync(MergeOption, CancellationToken)

Asynchronously executes the untyped object query with the specified merge option.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetResultType()

Returns information about the result type of the query.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodToTraceString()

Returns the commands to execute against the data source.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIListSource.GetList()

Returns the collection as an IList used for data binding.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDbAsyncEnumerable.GetAsyncEnumerator()

Returns an IDbAsyncEnumerator which when enumerated will execute the given SQL query against the database.

NameDescription
System_CAPS_pubmethodAsNoTracking()

Overloaded. Returns a new query where the entities returned will not be cached in the DbContext or ObjectContext. This method works by calling the AsNoTracking method of the underlying query object. If the underlying query object does not have an AsNoTracking method, then calling this method will have no affect.(Defined by QueryableExtensions.)

System_CAPS_pubmethodAsStreaming()

Obsolete.Overloaded. Returns a new query that will stream the results instead of buffering. This method works by calling the AsStreaming method of the underlying query object. If the underlying query object does not have an AsStreaming method, then calling this method will have no affect.(Defined by QueryableExtensions.)

System_CAPS_pubmethodForEachAsync(Action<Object>)

Overloaded. Asynchronously enumerates the query results and performs the specified action on each element.(Defined by QueryableExtensions.)

System_CAPS_pubmethodForEachAsync(Action<Object>, CancellationToken)

Overloaded. Asynchronously enumerates the query results and performs the specified action on each element.(Defined by QueryableExtensions.)

System_CAPS_pubmethodInclude(String)

Overloaded. Specifies the related objects to include in the query results.(Defined by QueryableExtensions.)

System_CAPS_pubmethodLoad()

Enumerates the query such that for server queries such as those of DbSet<TEntity>, ObjectSet<TEntity> , ObjectQuery<T>, and others the results of the query will be loaded into the associated DbContext , ObjectContext or other cache on the client. This is equivalent to calling ToList and then throwing away the list without the overhead of actually creating the list.(Defined by QueryableExtensions.)

System_CAPS_pubmethodLoadAsync()

Overloaded. Asynchronously enumerates the query such that for server queries such as those of DbSet<TEntity>, ObjectSet<TEntity> , ObjectQuery<T>, and others the results of the query will be loaded into the associated DbContext , ObjectContext or other cache on the client. This is equivalent to calling ToList and then throwing away the list without the overhead of actually creating the list.(Defined by QueryableExtensions.)

System_CAPS_pubmethodLoadAsync(CancellationToken)

Overloaded. Asynchronously enumerates the query such that for server queries such as those of DbSet<TEntity>, ObjectSet<TEntity> , ObjectQuery<T>, and others the results of the query will be loaded into the associated DbContext , ObjectContext or other cache on the client. This is equivalent to calling ToList and then throwing away the list without the overhead of actually creating the list.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToListAsync()

Overloaded. Creates a List<T> from an IQueryable by enumerating it asynchronously.(Defined by QueryableExtensions.)

System_CAPS_pubmethodToListAsync(CancellationToken)

Overloaded. Creates a List<T> from an IQueryable by enumerating it asynchronously.(Defined by QueryableExtensions.)

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

Return to top
Show: