Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by www.connectionstrings.com #
 
PREVIOUS NEXT
Tagged: #connection #string #core
ADD COMMENT
Topic
Name
8+4 =