1string logDbConnectionString = _configuration.GetValue<string>("Modules:Logging:logDb"); // read logDb connection string example
2string tenantsDbConnectionString = _configuration.GetValue<string>("Modules:Tenants:tenantsDb"); // read tenantsDb connection string example
3
1{
2 "ConnectionStrings": {
3 "myDb1": "Server=myServer;Database=myDb1;Trusted_Connection=True;",
4 "myDb2": "Server=myServer;Database=myDb2;Trusted_Connection=True;"
5 }
6}
7
1{
2 "Modules": {
3 "Logging": {
4 "logDb": "Server=myServer;Database=myDb1;Trusted_Connection=True;",
5 },
6 "Tenants": {
7 "tenantsDb": "Server=myServer;Database=myDb1;Trusted_Connection=True;",
8 }
9 }
10}
11