Entity Framework Core - How can i update models on database change using Database first approach?

Mohan Raju 40 Reputation points
2021-12-01T09:41:55.91+00:00

I have created models from Entity Framework Core 5 using database first approach. I have made some changes in database now.

Is there any way to update models other than Force approach which will overwrite all models?

Developer technologies .NET Entity Framework Core
{count} votes

1 answer

Sort by: Most helpful
  1. Duane Arnold 3,216 Reputation points
    2021-12-07T22:54:21.87+00:00

    You could create the models in a stagging folder and then copy the classes needed into the existing model as needed.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.