ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

EF-specific code inspections

Last modified: 27 November 2024

ReSharper provides the following code inspections for code issues specific to Entity Framework projects:

If you do not find some or all of these inspections helpful, you can clear the Enable Entity Framework-specific inspections checkbox on the Code Inspection | Entity Framework page of ReSharper options Alt+R, O, or alternatively, you can disable only model-specific or only query-specific inspections on that page.

On that settings page, you can also 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 AltEnter in the editor at the corresponding highlighting and choose to ignore the related context class:

ReSharper: Disabling Entity Framework inspections for a DB context class from the 'Alt+Enter' menu