I'm wondering if there's a standard way of handling migrations when using EF Core database-first.
Every time I make change to the database I run this in the CLI:
dotnet ef dbcontext scaffold "Data Source=(local);Initial Catalog=myCatalog;Trusted_Connection=true;" Microsoft.EntityFrameworkCore.SqlServer -o Models -f
The problem with it overrides every change I made in other entity and in the dbcontext, for example I have an interface of Id for each entity, when I scaffold I later need to add this to the entity again, is it possible sync the project with the database or maybe just the specific entity?
Another problem is that I recently had to change the defaultDeleteBehavior of the entities from DeleteBehavior.ClientSetNull to DeleteBehavior.Cascade so now every time I use the scaffolding approach I need to change manually 100+ entities in the OnModelCreating method.