EF 特定代码检查
JetBrains Rider 提供以下 代码检查 ,用于解决特定于 Entity Framework 项目的代码问题:
检查 | |
|---|---|
If you do not find some or all of these inspections helpful, you can clear the 启用 Entity Framework 特定检查 checkbox on the page of JetBrains Rider 设置 Ctrl+Alt+S, or alternatively, you can disable only model-specific or only query-specific inspections on that page.
在该设置页面,您还可以列出数据库上下文类(从 DbContext 继承的类)的 FQN(完全限定名称),这些类将在代码分析中被忽略,以识别 N+1、不完整数据和其他相关问题。
您可以单击表格上方的 添加 手动指定 FQN,或者在编辑器中按 Alt+Enter ,在相应的高亮处选择忽略相关的上下文类:

最后修改日期: 2025年 9月 26日