ReSharper 2023.2 Help

Entity Framework

This page of ReSharper options allows you to configure the code inspection in Entity Framework-related contexts.

Enable Entity Framework-specific inspections

Use this checkbox to toggle Entity Framework-specific inspections, such as Possible multiple queries to the database (N+1 problem) and Query can return incomplete data for related entities.

Note that after changing this option and saving the changes, ReSharper will have to re-analyze all projects that have direct or indirect references to Entity Framework.

Classes, for which Entity Framework query inspections should be disabled

Use this table to list FQNs (fully qualified names) of database context classes (classes inherited from DbContext) that will be ignored during code analysis for identifying N+1, incomplete data, and other related issues.

You can click Add above the table to specify FQNs manually, or you can press Alt+Enter in the editor at the corresponding highlighting and choose to ignore the related context class from the menu:

ReSharper: Disabling Entity Framework inspections for a DB context class from the 'Alt+Enter' menu
Last modified: 26 May 2023