Code inspection: Possible multiple queries to the database (N+1 problem)
tip
note
Using multi-level
Include
/ThenInclude
calls may lead to a cartesian explosion (depending on your database configuration). You may want to consider adding theAsSplitQuery()
method to your query when using Entity Framework Core.
note
You can change the Entity Framework query analysis mode, disable all EF query inspections, or list DbContext classes where EF-specific inspections should be ignored on the page of JetBrains Rider settings .