IDbAsyncQueryProvider.ExecuteAsync Method

 

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodExecuteAsync(Expression, CancellationToken)

Asynchronously executes the query represented by a specified expression tree.

System_CAPS_pubmethodExecuteAsync<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.

Task<object> ExecuteAsync(
	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<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.