Seamless EF Migrations from Staging > Production with Schema Change
问题 I have a simple web app. It consists of an Azure Web App with Staging and Production slots. When there are no DB migrations to consider, I can easily achieve a seamless update by: Deploy App to Staging Swap Staging <> Production Slots This gets trickier when I have a DB migration to handle. Right now what I do is: Deploy App to Staging When deployment is ready, run update-database to Prod (no staging database) Swap Staging <> Production Slots This means that I still effectively have downtime