Method ExecuteAsync
ExecuteAsync<TResult>(Expression, CancellationToken)
Executes the strongly-typed query represented by a specified expression tree.
Task<TResult> ExecuteAsync<TResult>(Expression expression, CancellationToken cancellationToken = default)
Parameters
expression
ExpressionAn expression tree that represents a LINQ query.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<TResult>
The value that results from executing the specified query.
Type Parameters
TResult
The type of the result.