Skip to content

Commit

Permalink
Correct await foreach pattern
Browse files Browse the repository at this point in the history
Resolves #1778
  • Loading branch information
smitpatel committed Sep 26, 2019
1 parent 6834078 commit 2971689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity-framework/core/what-is-new/ef-core-3.0/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var orders =
where o.Status == OrderStatus.Pending
select o;

await foreach(var o in orders)
await foreach(var o in orders.AsAsyncEnumerable())
{
Process(o);
}
Expand Down

0 comments on commit 2971689

Please sign in to comment.