public System.Collections.Generic.IAsyncEnumerable <TResult> ExecuteAsync <TResult>(Expression expression)
 {
     return(new AsyncEnumerableAdaper <TResult>(QueryProvider.ExecuteAsync <TResult>(expression)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Executes query expression and returns typed result.
 /// </summary>
 /// <typeparam name="TResult">Type of result.</typeparam>
 /// <param name="expression">Query expression.</param>
 /// <param name="cancellationToken">Cancellation token.</param>
 /// <returns>Query result.</returns>
 public Task <TResult> ExecuteAsync <TResult>(Expression expression, CancellationToken cancellationToken)
 {
     return(QueryProvider.ExecuteAsync <TResult>(expression, cancellationToken));
 }
Ejemplo n.º 3
0
 IAsyncEnumerable <TResult> IQueryProviderAsync.ExecuteAsync <TResult>(Expression expression)
 {
     return(QueryProvider.ExecuteAsync <TResult>(expression));
 }