DataServiceQuery<TElement> 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.
query object
public class DataServiceQuery<TElement> : Microsoft.OData.Client.DataServiceQuery, System.Collections.Generic.IEnumerable<TElement>, System.Linq.IQueryable<TElement>
type DataServiceQuery<'Element> = class
inherit DataServiceQuery
interface IQueryable<'Element>
interface seq<'Element>
interface IEnumerable
interface IQueryable
Public Class DataServiceQuery(Of TElement)
Inherits DataServiceQuery
Implements IEnumerable(Of TElement), IQueryable(Of TElement)
Type Parameters
- TElement
type of object to materialize
- Inheritance
- Derived
- Implements
Constructors
DataServiceQuery<TElement>(Expression, DataServiceQueryProvider, Boolean) |
query object of a function which returns a collection of items |
DataServiceQuery<TElement>(Expression, DataServiceQueryProvider) |
query object |
Properties
Context |
Context associated with this query. |
ElementType |
Returns the type of the object used in the template to create the DataServiceQuery<TElement> instance. |
Expression |
Represents an expression containing the query to the data service. |
IsComposable |
Whether this query is composable |
Provider |
Represents the query provider instance. |
RequestUri |
Get the URI for the query. |
Methods
AddQueryOption(String, Object) |
Creates a new DataServiceQuery<TElement> with the query option set in the URI generated by the returned query. |
AppendRequestUri(String) |
Get a new URI string by adding |
BeginExecute(AsyncCallback, Object) |
Starts an asynchronous network operation that executes the query represented by this object instance. |
CreateFunctionQuery<T>(String, Boolean, UriOperationParameter[]) |
Creates a data service query for function which return collection of data. |
CreateFunctionQuerySingle<T>(String, Boolean, UriOperationParameter[]) |
Creates a data service query for function which return single data. |
EndExecute(IAsyncResult) |
Ends an asynchronous query request to a data service. |
Execute() |
Executes the query and returns the results as a collection that implements IEnumerable. |
ExecuteAsync() |
Starts an asynchronous network operation that executes the query represented by this object instance. |
ExecuteAsync(CancellationToken) |
Starts an asynchronous network operation that executes the query represented by this object instance. |
Expand(String) |
Expands a query to include entities from a related entity set in the query response. |
Expand<TTarget>(Expression<Func<TElement,TTarget>>) |
Expands a query to include entities from a related entity set in the query response, where the related entity is of a specific type in a type hierarchy. |
GetAllPages() |
Get all items by auto iterating all pages, will send the request of first page as default, regardless if it's iterated. |
GetAllPagesAsync() |
Asynchronously sends a request to get all items by auto iterating all pages |
GetAllPagesAsync(CancellationToken) |
Asynchronously sends a request to get all items by auto iterating all pages |
GetEnumerator() |
Executes the query and returns the results as a collection. |
GetKeyPath(String) |
Gets a new URI string with keys. |
GetPath(String) |
Get a new URI path string by adding |
IncludeCount() |
Requests that the count of all entities in the entity set be returned inline with the query results. |
IncludeCount(Boolean) |
Requests that the count of all entities in the entity set be returned inline with the query results. |
IncludeTotalCount() |
Obsolete.
Requests that the count of all entities in the entity set be returned inline with the query results. |
IncludeTotalCount(Boolean) |
Obsolete.
Requests that the count of all entities in the entity set be returned inline with the query results. |
ToString() |
Represents the URI of the query to the data service. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |
Executes the query and returns the results as a collection. |
Extension Methods
CountDistinct<TSource,TTarget>(IEnumerable<TSource>, Func<TSource,TTarget>) |
Returns the distinct count of elements in a sequence after applying the projection function to each element. |
CountDistinct<TSource,TTarget>(IQueryable<TSource>, Expression<Func<TSource,TTarget>>) |
Returns the distinct count of elements in a sequence after applying the projection function to each element. |