DataServiceQuery 类
定义
表示对 WCF Data Services 的单个查询请求的抽象类。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
- 继承
- 派生
- 实现
注解
此类未定义公共构造函数。No public constructors are defined on this class. 对象实例是使用 CreateQuery 类的 CreateQuery 或 DataServiceContext 方法创建的。Object instances are created by using CreateQuery or CreateQuery on the DataServiceContext class.
属性
ElementType |
获取作为批处理提交到数据服务的对象的类型。Gets the type of object submitted as a batch to the data service. (继承自 DataServiceRequest) |
Expression |
表示一个表达式,其中包含对数据服务的查询。Represents an expression that contains the query to the data service. |
Provider |
表示查询提供程序实例。Represents the query provider instance. |
RequestUri |
获取提交到数据服务的请求对象的 URI。Gets the URI of the request object submitted to a data service. (继承自 DataServiceRequest) |
方法
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. (继承自 Object) |
Execute() |
执行对数据服务的查询。Executes the query against the data service. |
GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
ToString() |
表示对数据服务的查询的 URI。Represents the URI of the query to the data service. (继承自 DataServiceRequest) |
显式接口实现
IEnumerable.GetEnumerator() |
获取可用于循环访问查询返回的集合的 IEnumerator 对象。Gets the IEnumerator object that can be used to iterate through the collection returned by the query. |
扩展方法
Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
启用查询的并行化。Enables parallelization of a query. |
AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。Converts an IEnumerable to an IQueryable. |
Cast<TResult>(IQueryable) |
将 IQueryable 的元素转换为指定的类型。Converts the elements of an IQueryable to the specified type. |
OfType<TResult>(IQueryable) |
根据指定类型筛选 IQueryable 的元素。Filters the elements of an IQueryable based on a specified type. |