Definition
Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.QuerySyntax
Summary
Represents a service that executes a query.Remarks
Data provider implemented IQueryExecutor should only handle queries against the specific provider, and delegates all other queries to inner IQueryExecutor.Methods
ExecuteExpressionAsync Abstract
Asynchronously executes a singleton query and produces a query result.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
context | Microsoft.Restier.Core.Query.QueryContext | The query context. |
queryProvider | System.Linq.IQueryProvider | A query provider to execute the expression. |
expression | System.Linq.Expressions.Expression | An expression to be composed on the base query. |
cancellationToken | System.Threading.CancellationToken | A cancellation token. |
Returns
Type:System.Threading.Tasks.Task<Microsoft.Restier.Core.Query.QueryResult>
A task that represents the asynchronous
operation whose result is a query result.
Type Parameters
TResult- The type of the singleton query result.
ExecuteQueryAsync Abstract
Asynchronously executes a query and produces a query result.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
context | Microsoft.Restier.Core.Query.QueryContext | The query context. |
query | System.Linq.IQueryable<TElement> | A composed query. |
cancellationToken | System.Threading.CancellationToken | A cancellation token. |
Returns
Type:System.Threading.Tasks.Task<Microsoft.Restier.Core.Query.QueryResult>
A task that represents the asynchronous
operation whose result is a query result.
Type Parameters
TElement- The type of the elements in the query.