public System.Collections.Generic.IAsyncEnumerable <TResult> ExecuteAsync <TResult>(Expression expression) { return(new AsyncEnumerableAdaper <TResult>(QueryProvider.ExecuteAsync <TResult>(expression))); }
/// <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)); }
IAsyncEnumerable <TResult> IQueryProviderAsync.ExecuteAsync <TResult>(Expression expression) { return(QueryProvider.ExecuteAsync <TResult>(expression)); }