IDbAsyncQueryProvider.ExecuteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ExecuteAsync(Expression, CancellationToken) |
Asynchronously executes the query represented by a specified expression tree. |
ExecuteAsync<TResult>(Expression, CancellationToken) |
Asynchronously executes the strongly-typed query represented by a specified expression tree. |
ExecuteAsync(Expression, CancellationToken)
Asynchronously executes the query represented by a specified expression tree.
public System.Threading.Tasks.Task<object> ExecuteAsync (System.Linq.Expressions.Expression expression, System.Threading.CancellationToken cancellationToken);
abstract member ExecuteAsync : System.Linq.Expressions.Expression * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
Parameters
- expression
- Expression
An expression tree that represents a LINQ query.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Returns
A task that represents the asynchronous operation. The task result contains the value that results from executing the specified query.
Applies to
ExecuteAsync<TResult>(Expression, CancellationToken)
Asynchronously executes the strongly-typed query represented by a specified expression tree.
public System.Threading.Tasks.Task<TResult> ExecuteAsync<TResult> (System.Linq.Expressions.Expression expression, System.Threading.CancellationToken cancellationToken);
abstract member ExecuteAsync : System.Linq.Expressions.Expression * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
Type Parameters
- TResult
The type of the value that results from executing the query.
Parameters
- expression
- Expression
An expression tree that represents a LINQ query.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Returns
A task that represents the asynchronous operation. The task result contains the value that results from executing the specified query.
Applies to
Entity Framework