Base solution for your next web application
Open Closed

Merging EF migration on upgrade process #10966


User avatar
1
andmattia created

I worked to update our solution, I used the approch describe on ANZ giude Version Updating.

Following this apporch (it's very powefull) I'm able to upgrade my solution but I think it still remain an open point about migration.

On EF pre NetCore you can applied migration created in the past but now EFCore create a file to take a snapshot of db schema so is not possibile to add previous migration. We found 2 solution:

  1. remove all migrations from EF snapshot, add ANZ migration and after that re add custom migration
  2. create a new migration an manully check (index, nameing, etc)
  3. ...

Is it possibile to use different approch to update db?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @andmattia

    What about merging the migrations created by our team and create a new migration after merging Entity and DbContext changes to your project ?