DataServiceQuery<TElement> Класс
Определение
Представляет одиночный запрос к службе данных.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)
Параметры типа
- TElement
Тип результатов, возвращаемых запросом.Type of results returned by the query.
- Наследование
- Реализации
Комментарии
На основе этого класса не определены открытые конструкторы.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 |
Возвращает тип объекта, используемый в шаблоне для создания экземпляра DataServiceQuery<TElement>.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. |
Методы
AddQueryOption(String, Object) |
Создает новый запрос DataServiceQuery<TElement> с параметром запроса, заданным в URI, который был сформирован возвращенным запросом.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. (Унаследовано от Object) |
Execute() |
выполняет запрос и возвращает результаты в виде коллекции, которая реализует интерфейс |
Expand(String) |
Создает новый запрос DataServiceQuery<TElement> c URI, сгенерированным по полученному запросу и в котором включен параметр развертывания.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. (Унаследовано от Object) |
GetType() |
Возвращает объект Type для текущего экземпляра.Gets the Type of the current instance. (Унаследовано от Object) |
IncludeTotalCount() |
Указывает, что количество всех сущностей в наборе сущностей должно возвращаться вместе с результатами запроса.Requests that the count of all entities in the entity set be returned inline with the query results. |
MemberwiseClone() |
Создает неполную копию текущего объекта Object.Creates a shallow copy of the current Object. (Унаследовано от Object) |
ToString() |
Представляет URI запроса к службе данных.Represents the URI of the query to the data service. |
Явные реализации интерфейса
IEnumerable.GetEnumerator() |
Выполняет запрос и возвращает результаты в виде коллекции.Executes the query and returns the results as a collection. |
Методы расширения
CopyToDataTable<T>(IEnumerable<T>) |
Возвращает объект DataTable, содержащий копии объектов DataRow при заданном входном объекте IEnumerable<T> и универсальном параметре |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) |
Копирует объекты DataRow в указанный объект DataTable с заданным входным объектом IEnumerable<T>, где универсальный параметр |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) |
Копирует объекты DataRow в указанный объект DataTable с заданным входным объектом IEnumerable<T>, где универсальный параметр |
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. |
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. В коллекцию включаются только элементы, соответствующие XName.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. В коллекцию включаются только элементы, соответствующие XName.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. В коллекцию включаются только элементы, соответствующие XName.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. |