Projects may have got many repositories
even local ones
This commit is contained in:
parent
4ed611df74
commit
22ea8f5b33
9 changed files with 100 additions and 90 deletions
|
|
@ -58,7 +58,8 @@ namespace cli
|
|||
.AddJsonFile("appsettings.json")
|
||||
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true);
|
||||
Configuration = builder.Build();
|
||||
|
||||
ConnectionString = Configuration["Data:DefaultConnection:ConnectionString"];
|
||||
AppDomain.CurrentDomain.SetData("YAVSC_CONNECTION", ConnectionString);
|
||||
}
|
||||
|
||||
public void ConfigureServices (IServiceCollection services)
|
||||
|
|
@ -79,7 +80,6 @@ namespace cli
|
|||
{
|
||||
options.ResourcesPath = "Resources";
|
||||
});
|
||||
ConnectionString = Configuration["Data:DefaultConnection:ConnectionString"];
|
||||
|
||||
services.AddEntityFramework()
|
||||
.AddNpgsql()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue