如何禁用 EF Core 3 中的错误

How to disable errors in EF Core 3

Entity Framework 从 Core 2 升级到 Core 3 后,我们的很多查询都被破坏了。与 不同,我知道如何修复它。问题是错误是在运行时出现的,可能需要几个月的 QA 和开发工作才能找到所有错误(这是一个大型应用程序)。

有没有办法打开一些兼容模式,其中EF允许客户端评估,但显示警告,以便开发人员可以逐步修复它们?

Is there a way to turn on some compatibility mode, where EF would allow client evaluation, but show the warning, so that developers can fix them gradually?

返回 EF Core 2 并配置 warning for client evaluation,然后在完成所有修复后升级到 EF Core 3。