how to get connection string value from appsettings.json in .net core
string logDbConnectionString = _configuration.GetValue<string>("Modules:Logging:logDb"); // read logDb connection string example
string tenantsDbConnectionString = _configuration.GetValue<string>("Modules:Tenants:tenantsDb"); // read tenantsDb connection string example
{
"ConnectionStrings": {
"myDb1": "Server=myServer;Database=myDb1;Trusted_Connection=True;",
"myDb2": "Server=myServer;Database=myDb2;Trusted_Connection=True;"
}
}
Also in JavaScript:
- 404 page setup in angular routing
- how to sort string aray in ts
- loading screen fivem js
- how to convert object to array in javascript
- vuex getter root state
- javascript rpg tutorial
- json parse string
- select option trigger in js
- access-control-allow-origin
- dropdown using ajax and django
- jquery google cdn
- js date in arabic
- append new element for each value in array d3.js
- how to update all node libraries
- javascript remove last character in a string
- javascript textcontent vs innertext
- javascript detect textarea change
- content type json
- get last element in array javascript
- get url of page in background script
- javascript array group by id
- casl react
- how to add script before </body> in magento 2
- how to change css variable in javascript