Interface IAsyncQueryProvider
Contract for asynchronous query providers.
Inherited Members
Namespace: Kephas.Data.Linq
Assembly: Kephas.Data.dll
Syntax
public interface IAsyncQueryProvider : IQueryProvider
Methods
| Improve this Doc View SourceExecuteAsync(Expression, CancellationToken)
Asynchronously executes the query represented by a specified expression tree.
Declaration
Task<object> ExecuteAsync(Expression expression, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | An expression tree that represents a LINQ query. |
System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to observe while waiting for the task to complete. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | A task that represents the asynchronous operation. The task result contains the value that results from executing the specified query. |
ExecuteAsync<TResult>(Expression, CancellationToken)
Asynchronously executes the strongly-typed query represented by a specified expression tree.
Declaration
Task<TResult> ExecuteAsync<TResult>(Expression expression, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | An expression tree that represents a LINQ query. |
System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to observe while waiting for the task to complete. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult> | A task that represents the asynchronous operation. The task result contains the value that results from executing the specified query. |
Type Parameters
Name | Description |
---|---|
TResult | The type of the value that results from executing the query. |