DataServiceQuery<TElement> Class
Definition
Represents a single query request to a data service.
generic <typename TElement>
public ref class DataServiceQuery : System::Data::Services::Client::DataServiceQuery, System::Collections::Generic::IEnumerable<TElement>, System::Linq::IQueryable<TElement>
public class DataServiceQuery<TElement> : System.Data.Services.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 results returned by the query.
- Inheritance
- Implements
Remarks
No public constructors are defined on this class. Object instances are created by using CreateQuery or CreateQuery on the DataServiceContext class.
Properties
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. |
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. |
BeginExecute(AsyncCallback, Object) |
Starts an asynchronous network operation that executes the query represented by this object instance. |
EndExecute(IAsyncResult) |
Ends an asynchronous query request to a data service. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Execute() |
Executes the query and returns the results as a collection that implements |
Expand(String) |
Creates a new DataServiceQuery<TElement> with the expand option set in the URI generated by the returned query. |
GetEnumerator() |
Executes the query and returns the results as a collection. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
IncludeTotalCount() |
Requests that the count of all entities in the entity set be returned inline with the query results. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
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
CopyToDataTable<T>(IEnumerable<T>) |
Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |
Cast<TResult>(IQueryable) |
Converts the elements of an IQueryable to the specified type. |
OfType<TResult>(IQueryable) |
Filters the elements of an IQueryable based on a specified type. |
SortBy<T>(IQueryable<T>, String) |
Specifies a sort order. |
Ancestors<T>(IEnumerable<T>) |
Returns a collection of elements that contains the ancestors of every node in the source collection. |
Ancestors<T>(IEnumerable<T>, XName) |
Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection. |
DescendantNodes<T>(IEnumerable<T>) |
Returns a collection of the descendant nodes of every document and element in the source collection. |
Descendants<T>(IEnumerable<T>) |
Returns a collection of elements that contains the descendant elements of every element and document in the source collection. |
Descendants<T>(IEnumerable<T>, XName) |
Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. |
Elements<T>(IEnumerable<T>) |
Returns a collection of the child elements of every element and document in the source collection. |
Elements<T>(IEnumerable<T>, XName) |
Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. |
InDocumentOrder<T>(IEnumerable<T>) |
Returns a collection of nodes that contains all nodes in the source collection, sorted in document order. |
Nodes<T>(IEnumerable<T>) |
Returns a collection of the child nodes of every document and element in the source collection. |
Remove<T>(IEnumerable<T>) |
Removes every node in the source collection from its parent node. |