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>
/// <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)
        {
            Check.NotNull(action, "action");
            return ((IDbAsyncEnumerable)this).ForEachAsync(action, CancellationToken.None);
        }
public virtual Task ForEachAsync ( Action < object > action ) { Check . NotNull ( action , " " ) ; return ( ( IDbAsyncEnumerable ) this ) . ForEachAsync ( action , CancellationToken . None ) ; }
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 .
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 .