I have written connection string in appsettings.json for .Net core project. My connection string is :
"ConnectionStrings": {
"OT_DB_Connection": "Data Source=108.***.**.**;Initial Catalog=O*******s;User ID=O*******s;Password=O*********$"
},
I am accessing this connection string in startup.cs file as shown below.
options.UseSqlServer(Configuration.GetConnectionString("OT_DB_Connection"));
Now i deployed this website on azure and i have separate database on azure and i want that my website will to connect to azure database at runtime by overriding the local connection string.
Please suggest how i can achieve this.
Thanks