I'm updating the EF model in a Web App, the App references the DLLs EntityFramework v4.0.30319 and EntityFramework.SQLserver v4.0.30319 I'm pretty sure this is EF6(?) and I wanted to create a new EF Model in a separate class library and kind of slide it in as a replacement.
I created a class library project with the intention of using
dotnet ef dbcontext scaffold ...
...to create the new model.
When I go to build,
[it wants the EntityFrameworkCore packages]
...and I'm building the new library ok.
My question is can I just update the Webb App with the packages and slide this model in, or should I try another approach. NuGet doesn't seem to have those old packages, and I don't think eftools will use them anyway?
CodePudding user response:
I'm just stuck on how to generate the new dbcontext with the database change that I've made, The App is Web Form .NET 4.7.2 Framework
The last version of EF Core to have .NET Framework compatibility was 3.1. So for a .NET Framework application you should stick with EF 6.