src/Shared/EntityFramework/Infrastructure/DbRawSqlQuery.cs
/// <summary>
/// Asynchronously enumerates the query results and performs the specified action on each element.
/// </summary>
/// <remarks>
/// Multiple active operations on the same context instance are not supported.  Use 'await' to ensure
/// that any asynchronous operations have completed before calling another method on this context.
/// </remarks>
/// <param name="action"> The action to perform on each element. </param>
/// <param name="cancellationToken">
/// A <see cref="CancellationToken" /> to observe while waiting for the task to complete.
/// </param>
/// <returns> A task that represents the asynchronous operation. </returns>
Asynchronously enumerates the query results and performs the specified action on each element.
Asynchronously enumerates the query results and performs the specified action on each element .
public virtual Task ForEachAsync(Action<object> action, CancellationToken cancellationToken)
        {
            Check.NotNull(action, "action");
            return ((IDbAsyncEnumerable)this).ForEachAsync(action, cancellationToken);
        }
public virtual Task ForEachAsync ( Action < object > action , CancellationToken cancellationToken ) { Check . NotNull ( action , " " ) ; return ( ( IDbAsyncEnumerable ) this ) . ForEachAsync ( action , cancellationToken ) ; }
Asynchronously enumerates the query results and performs the specified action on each element.
Asynchronously enumerates the query results and performs the specified action on each element .
A task that represents the asynchronous operation.
A task that represents the asynchronous operation .
action
Action<object>
The action to perform on each element.
The action to perform on each element .
cancellationToken
CancellationToken
A  to observe while waiting for the task to complete.
A to observe while waiting for the task to complete .
remarks
Multiple active operations on the same context instance are not supported.  Use 'await' to ensure
that any asynchronous operations have completed before calling another method on this context.
Multiple active operations on the same context instance are not supported . Use ' await ' to ensure that any asynchronous operations have completed before calling another method on this context .