Share via


IDbAsyncQueryProvider.ExecuteAsync Method

Definition

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

Task<TResult>

A task that represents the asynchronous operation. The task result contains the value that results from executing the specified query.

Applies to