update Program.cs
This commit is contained in:
parent
68faa22ec5
commit
f8eade3955
@ -81,9 +81,9 @@ builder.Services.AddMvc(options =>
|
|||||||
builder.Services.AddSwaggerConfig();
|
builder.Services.AddSwaggerConfig();
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
InternalApp.ServiceProvider = app.Services;
|
||||||
if (builder.Configuration["InitDb"].ParseToBool() == true)
|
if (builder.Configuration["InitDb"].ParseToBool() == true)
|
||||||
{
|
{
|
||||||
InternalApp.ServiceProvider = app.Services;
|
|
||||||
app.Services.InitDb();
|
app.Services.InitDb();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user