DataServiceQuery 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.
An abstract class that represents a single query request to WCF Data Services.
public ref class DataServiceQuery abstract : System::Data::Services::Client::DataServiceRequest, System::Collections::IEnumerable, System::Linq::IQueryable
public abstract class DataServiceQuery : System.Data.Services.Client.DataServiceRequest, System.Collections.IEnumerable, System.Linq.IQueryable
type DataServiceQuery = class
inherit DataServiceRequest
interface IQueryable
interface IEnumerable
Public MustInherit Class DataServiceQuery
Inherits DataServiceRequest
Implements IEnumerable, IQueryable
- Inheritance
- Derived
- 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 |
Gets the type of object submitted as a batch to the data service. (Inherited from DataServiceRequest) |
Expression |
Represents an expression that contains the query to the data service. |
Provider |
Represents the query provider instance. |
RequestUri |
Gets the URI of the request object submitted to a data service. (Inherited from DataServiceRequest) |
Methods
BeginExecute(AsyncCallback, Object) |
Asynchronously sends a request to execute the data service query. |
EndExecute(IAsyncResult) |
Called to complete the asynchronous operation of executing a data service query. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Execute() |
Executes the query against the data service. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Represents the URI of the query to the data service. (Inherited from DataServiceRequest) |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |
Gets the IEnumerator object that can be used to iterate through the collection returned by the query. |
Extension Methods
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. |