Udostępnij za pośrednictwem


TableController<TData>.QueryAsync(ODataQueryOptions) Method

Definition

Provides a helper method for querying a backend store. It deals with any exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

protected virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TData>> QueryAsync (System.Web.Http.OData.Query.ODataQueryOptions query);
abstract member QueryAsync : System.Web.Http.OData.Query.ODataQueryOptions -> System.Threading.Tasks.Task<seq<'Data>>
override this.QueryAsync : System.Web.Http.OData.Query.ODataQueryOptions -> System.Threading.Tasks.Task<seq<'Data>>
Protected Overridable Function QueryAsync (query As ODataQueryOptions) As Task(Of IEnumerable(Of TData))

Parameters

query
System.Web.Http.OData.Query.ODataQueryOptions

Returns

Task<IEnumerable<TData>>

An IQueryable<T> returned by the IDomainManager<TData>.

Applies to