IDbAsyncQueryProvider.ExecuteAsync Method
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | 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. |
IDbAsyncQueryProvider.ExecuteAsync Method (Expression, CancellationToken)
Asynchronously executes the query represented by a specified expression tree.
Parameters
- expression
-
Type:
System.Linq.Expressions.Expression
An expression tree that represents a LINQ query.
- cancellationToken
-
Type:
System.Threading.CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Return Value
Type: System.Threading.Tasks.Task<Object>A task that represents the asynchronous operation. The task result contains the value that results from executing the specified query.
IDbAsyncQueryProvider.ExecuteAsync<TResult> Method (Expression, CancellationToken)
Asynchronously executes the strongly-typed query represented by a specified expression tree.
Task<TResult> ExecuteAsync<TResult>( Expression expression, CancellationToken cancellationToken )
Parameters
- expression
-
Type:
System.Linq.Expressions.Expression
An expression tree that represents a LINQ query.
- cancellationToken
-
Type:
System.Threading.CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Return Value
Type: 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
- TResult
The type of the value that results from executing the query.