Interface IAsyncQueryProvider
Defines method to execute queries asynchronously that are described by an IQueryable object.
Namespace: PnP.Core.QueryModel
Assembly: PnP.Core.dll
Syntax
public interface IAsyncQueryProvider
Methods
AddToBatchAsync<TResult>(Expression, Batch)
Adds the expression to the specified batch
Declaration
Task<IEnumerableBatchResult<TResult>> AddToBatchAsync<TResult>(Expression expression, Batch batch)
Parameters
Expression
expression
|
Batch
batch
|
Returns
Task<IEnumerableBatchResult<TResult>>
|
Type Parameters
TResult
|
AddToCurrentBatchAsync<TResult>(Expression)
Adds the expression to the current batch
Declaration
Task<IEnumerableBatchResult<TResult>> AddToCurrentBatchAsync<TResult>(Expression expression)
Parameters
Expression
expression
|
Returns
Task<IEnumerableBatchResult<TResult>>
|
Type Parameters
TResult
|
ExecuteAsync<TResult>(Expression, CancellationToken)
Executes the strongly-typed query represented by a specified expression tree asynchronously.
Declaration
TResult ExecuteAsync<TResult>(Expression expression, CancellationToken cancellationToken = null)
Parameters
Expression
expression
|
CancellationToken
cancellationToken
|
Returns
TResult
|
Type Parameters
TResult
|