ObjectQuery<T> Members
.NET Framework 3.5
Represents a typed query against an Entity Data Model (EDM) in a given object context.
The ObjectQuery<T> type exposes the following members.
| Name | Description | |
|---|---|---|
|
ObjectQuery<T> | Overloaded. Initializes a new instance of the ObjectQuery<T> class. |
| Name | Description | |
|---|---|---|
|
Distinct | Limits the query to unique results. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Except | Limits the query results by excluding results based on the results of another object query. |
|
Execute | Executes the object query with the specified merge option. |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetResultType | Returns information about the result type of the query. (Inherited from ObjectQuery.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
GroupBy | Groups the query results by the specified criteria. |
|
Include | Specifies the related objects to include in the query results. |
|
Intersect | Limits the query results by including only the results that exist in another object query. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
OfType<TResultType> | Limits the query to only results of a specific type. |
|
OrderBy | Orders the query results by the specified criteria. |
|
Select | Limits the query results to only the properties that are defined in the specified projection. |
|
SelectValue<TResultType> | Limits the query results to only the property specified in the projection. |
|
Skip | Orders the query results by the specified criteria and skips a specified number of results. |
|
Top | Limits the query results to a specified number of items. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
ToTraceString | Returns the commands to execute against the data source. (Inherited from ObjectQuery.) |
|
Union | Combines the results of the query with the results of another object query, without any duplicates. |
|
UnionAll | Combines the results of the query with the results of another object query, including all duplicates. |
|
Where | Limits the query to results that match specified filtering criteria. |
| Name | Description | |
|---|---|---|
|
Aggregate | Overloaded. Applies an accumulator function over a sequence. |
|
All | Overloaded. |
|
Any | Overloaded. Determines whether any element of an IQueryable<T> sequence exists or satisfies a condition. |
|
AsEnumerable | Returns the input typed as IEnumerable<T>. (Defined by Enumerable.) |
|
AsQueryable | Overloaded. Converts an IEnumerable or generic IEnumerable<T> to an IQueryable or generic IQueryable<T>. |
|
Average | Overloaded. Computes the average of a sequence of numeric values. |
|
Cast | Overloaded. |
|
Concat | Overloaded. |
|
Contains | Overloaded. Determines whether an IQueryable<T> contains a specified element. |
|
Count | Overloaded. Returns the number of elements in a sequence. |
|
DefaultIfEmpty | Overloaded. Returns the elements in a sequence or a default valued singleton collection if the sequence is empty. |
|
Distinct | Overloaded. Returns distinct elements from a sequence. |
|
ElementAt | Overloaded. |
|
ElementAtOrDefault | Overloaded. |
|
Except | Overloaded. Produces the set difference of two sequences. |
|
First | Overloaded. Returns the first element of a sequence. |
|
FirstOrDefault | Overloaded. Returns the first element of a sequence, or a default value if no element is found. |
|
Intersect | Overloaded. Produces the set intersection of two sequences. |
|
Last | Overloaded. Returns the last element in a sequence. |
|
LastOrDefault | Overloaded. Returns the last element of a sequence, or a default value if no element is found. |
|
LongCount | Overloaded. Returns an Int64 that represents the number of elements in sequence. |
|
Max | Overloaded. Returns the maximum value in a sequence. |
|
Min | Overloaded. Returns the minimum value in a sequence. |
|
OfType | Overloaded. |
|
Reverse | Overloaded. |
|
SequenceEqual | Overloaded. Determines whether two sequences are equal. |
|
Single | Overloaded. Returns a single, specific element of a sequence. |
|
SingleOrDefault | Overloaded. Returns a single, specific element of a sequence, or a default value if no such element is found. |
|
Skip | Overloaded. |
|
SkipWhile | Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. |
|
Sum | Overloaded. Computes the sum of a sequence of numeric values. |
|
Take | Overloaded. |
|
TakeWhile | Overloaded. Returns elements from a sequence as long as a specified condition is true, and then skips the remaining elements. |
|
ToArray | Creates an array from a IEnumerable<T>. (Defined by Enumerable.) |
|
ToList | Creates a List<T> from an IEnumerable<T>. (Defined by Enumerable.) |
|
Union | Overloaded. Produces the set union of two sequences. |
|
Where | Overloaded. Filters a sequence of values based on a predicate. |
| Name | Description | |
|---|---|---|
|
CommandText | Returns the command text for the query. (Inherited from ObjectQuery.) |
|
Context | Gets the object context associated with this object query. (Inherited from ObjectQuery.) |
|
EnablePlanCaching | Gets or sets a value that indicates whether the query plan should be cached. (Inherited from ObjectQuery.) |
|
MergeOption | Gets or sets how objects returned from a query are added to the object context. (Inherited from ObjectQuery.) |
|
Name | Gets or sets the name of this object query. |
|
Parameters | Gets the parameter collection for this object query. (Inherited from ObjectQuery.) |
| Name | Description | |
|---|---|---|
|
IListSource.ContainsListCollection | Gets a value that indicates whether the collection returned by the query contains collection objects. (Inherited from ObjectQuery.) |
|
IQueryable.ElementType | Gets the result element type for this query instance. (Inherited from ObjectQuery.) |
|
IQueryable.Expression | Gets the expression describing this query. (Inherited from ObjectQuery.) |
|
IEnumerable.GetEnumerator | Returns an enumerator that iterates through a collection. (Inherited from ObjectQuery.) |
|
IEnumerable<T>.GetEnumerator | Returns an enumerator that iterates through the results of the query. |
|
IListSource.GetList | Returns the collection as an IList used for data binding. (Inherited from ObjectQuery.) |
|
IQueryable.Provider | Gets the LINQ IQueryProvider associated with this query instance. (Inherited from ObjectQuery.) |