Search code examples
entity-frameworkasp.net-coreentity-framework-coreentity-framework-core-3.0

How to disable errors in EF Core 3


After upgrading Entity Framework from Core 2 to Core 3, a lot of our queries are broken. Unlike this question, I know what to do to fix it. The problem is that the errors come in runtime, and it will probably take several months of QA and development efforts to find them all (it's a large application).

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?


Solution

  • 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?

    Go back to EF Core 2 and configure a warning for client evaluation, and then upgrade to EF Core 3 once you've made all the fixes.