How to apply database code first migrations in an azure deployed application?

后端 未结 4 1112
故里飘歌
故里飘歌 2020-12-04 00:53

I just deployed an application into an azure App Service. My project does has migrations to be applied. But I was not able to apply them by using azure app command line

4条回答
  •  一生所求
    2020-12-04 01:31

    You can set Azure connection string in appsettings.json instead of local one and execute the migration or dotnet ef database update

提交回复
热议问题