Reputation: 103
I'm working on a .NET MVC web app using Entity Framework 6 to manage a model from a SQL Server database. I've been using VS 2017 to develop everything so far, making changes to the database, and updating the model after those changes are made. When I switched to VS 2019 and attempted this, only the model and diagram of the model were updated. The classes generated by EF were not updated with the changes from the database. Does VS 2019 handle EF models differently than 2017?
Upvotes: 8
Views: 5339
Reputation: 510
According to this thread on VS Developer Community, it will be fixed in VB2019.1, in the meantime there's a workaround:
Upvotes: 5
Reputation: 1
For what it's worth, I'm experiencing exactly the same issue. The EDMX file gets updated as expected, but additional fields aren't being added to the generated class...
Reopening the project in VS 2017 works, suggesting that something has changed within VS itself.
Upvotes: 0