src/Shared/EntityFramework.Community.Shared/QueryDeferred/QueryDeferred.cs
/// <summary>Execute asynchrounously the deferred expression and return the result.</summary>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>The result of the deferred expression executed asynchrounously.</returns>
Execute asynchrounously the deferred expression and return the result.
Execute asynchrounously the deferred expression and return the result .
public Task<TResult> ExecuteAsync(CancellationToken cancellationToken)
        {
            var asyncQueryProvider = Query.Provider as IDbAsyncQueryProvider;
            return asyncQueryProvider != null ? asyncQueryProvider.ExecuteAsync<TResult>(Expression, cancellationToken) : Task.Run(() => Execute(), cancellationToken);
        }
public Task < TResult > ExecuteAsync ( CancellationToken cancellationToken ) { var asyncQueryProvider = Query . Provider as IDbAsyncQueryProvider ; return asyncQueryProvider != null ? asyncQueryProvider . ExecuteAsync < TResult > ( Expression , cancellationToken ) : Task . Run ( ( ) => Execute ( ) , cancellationToken ) ; }
Execute asynchrounously the deferred expression and return the result.
Execute asynchrounously the deferred expression and return the result .
The result of the deferred expression executed asynchrounously.
The result of the deferred expression executed asynchrounously .
cancellationToken
CancellationToken
The cancellation token.
The cancellation token .