By VS 2019, I created an API project (database first), everything it\'s working well, now I made some changes in the database like add new tables and some property and modif
Hi I am Considering you are using EFCore, please confirm !!
As per available information over internet
EF core for DB first ( from db to EF ) approach to Modify new/existing entity
you need to follow steps as:
EF model require to run Scaffold with flag Force this will remove all your local changes in model (for me it was IdentityDBContext and override identityUser changes)
after run the all your model migration
running all migration will bring everything in sync bw EF and DB
now you need to do the local changaes again over solution ( for me update IdentityDBContext and override identityUser changes back as it was before db changes )