mirror of
https://github.com/D4M13N-D3V/comissions-app-core-api.git
synced 2025-03-14 10:04:55 +00:00
made it migrate
This commit is contained in:
parent
560be3ce13
commit
7ea1897fb4
@ -148,9 +148,9 @@ var app = builder.Build();
|
|||||||
var serviceScope = app.Services
|
var serviceScope = app.Services
|
||||||
.GetRequiredService<IServiceScopeFactory>()
|
.GetRequiredService<IServiceScopeFactory>()
|
||||||
.CreateScope();
|
.CreateScope();
|
||||||
using var context = serviceScope.ServiceProvider
|
using (var context = serviceScope.ServiceProvider.GetService<ApplicationDbContext>()){
|
||||||
.GetService<ApplicationDbContext>();
|
context.Database.Migrate();
|
||||||
context.Database.Migrate();
|
}
|
||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
app.UseSwaggerUI(settings =>
|
app.UseSwaggerUI(settings =>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user