Change connection string from development to production when publishing

后端 未结 4 1118
野性不改
野性不改 2021-01-13 09:03

I want to know how to change automatically the connection string of my app so when I\'m working on it in my pc, it uses my local SQL Server and once I publish it then uses t

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-13 09:51

    You can now use Azure to handle this exact problem through their connection strings within app settings. You just need to name the connections exactly the same and then it will plug and play.

    https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-configure

提交回复
热议问题