.net-core - 点网核心 3.1,EF1001 : internal ef core api usage

标签 .net-core entity-framework-core

从 2.2 升级到 Dotnet Core 3.1,EF 核心一直在提示 EF1001:内部 ef 核心 api 使用 通过在我的项目中放置一个感叹号。

但是在编译过程中没有显示错误/警告。我不知道哪一行代码导致了问题。

我可以知道如何找出我不应该使用的 API/方法吗?

最佳答案

这些分析器发出的警告确实令人困惑。如果我理解正确,问题就不是看起来的那样。

分析仪内部带有灰色警告图标的消息是正常的,表明分析仪正在检查什么。见 Analyzers in Solution Explorer documentation为解释。

Analyzer diagnostics

如果您在父节点(“分析器”)上遇到黄色图标,请尝试卸载/重新加载项目,或者在管理模式下打开 Visual Studio。详情见“Analyzers warnings in ASP.NET Core 2.2 project in VS2019 ”的回答。

如果您在错误列表中没有看到警告,那么我建议您忽略它。

GitHub 问题“Confusing analyzer warnings in solution explorer with no way to see any details”提供了更多信息。

关于.net-core - 点网核心 3.1,EF1001 : internal ef core api usage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60235647/

相关文章:

entity-framework-core - NU1107 : Version conflict detected for Microsoft. EntityFrameworkCore.Abstractions。安装 EFCore 以与 AspNetCore 2.2 一起使用

c# - MSB4020 : The value "" of the "Project" attribute in element <Import> is invalid

.net-core - Cake 命令 DotNetCoreTool 在构建服务器上失败并显示 "No executable found matching command"

c# - AspNetCore如何将css和js注入(inject)到它的开发者异常页面中?

c# - 将类别父 ID 自引用表结构映射到 EF Core 实体

c# - 如何设置 Entity Framework Core 迁移超时?

.net-core - 结合 .NET Core 2.2 和 3.0 项目

c# - .Net Core 在序列化之前从自定义中间件访问响应

azure - 我的 Azure Web 应用程序无法从正确的 appsetting.{env}.json 文件中读取参数

c# - 无法通过上下文(Entity Framework Core)将 unicode(表情符号)写入 SQL Server 表