EF Core Update Model on Database First Project
As it turned out, I missed a table, so I had to add the model class for that and update the database context. Of course I thought that Visual Studio should have some tool our wizard like it had when using EDMX files. I was wrong, Entity Framework Core has not added support for EDMX generation.
As I had no business related code inside the model classes, or any special customization, the simplest scenario was to reverse engineer the model from the database again using scaffold-dbcontext with the ‘-Force’ option. Mind that if you reverse engineer the model from the database again, any changes you’ve made to the files will be lost.
Nevertheless, if you’re more into GUI than CLI, you should try out EF Core Power Tools. Check out the demo from .NET Conf 2020 on youtube.