eliminate manually update the appsettings.json file
This commit is contained in:
1 parent
cf9c7182d5
commit
e5c6f71155
3 files changed
+9
-4
No files matched your search
@@ -30,11 +30,11 @@ public static class Dependencies
|
||||
// Requires LocalDB which can be installed with SQL Server Express 2016
|
||||
// https://www.microsoft.com/en-us/download/details.aspx?id=54284
|
||||
services.AddDbContext<CatalogContext>(c =>
|
||||
c.UseSqlServer(configuration.GetConnectionString("CatalogConnection")));
|
||||
c.UseSqlServer(configuration["CATALOG_CONNECTION_STRING_VALUE"]));
|
||||
|
||||
// Add Identity DbContext
|
||||
services.AddDbContext<AppIdentityDbContext>(options =>
|
||||
options.UseSqlServer(configuration.GetConnectionString("IdentityConnection")));
|
||||
options.UseSqlServer(configuration["IDENTITY_CONNECTION_STRING_VALUE"]));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user