Skip to main content

What it flags

A terminal operation on an Entity Framework Core DbSet query inside a foreach loop where the query uses the current iteration value.

How to review or fix

Consider loading the matching keys in one query. Preserve ordering and any explicit behavior for missing rows.