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
|
||||
.GetRequiredService<IServiceScopeFactory>()
|
||||
.CreateScope();
|
||||
using var context = serviceScope.ServiceProvider
|
||||
.GetService<ApplicationDbContext>();
|
||||
context.Database.Migrate();
|
||||
using (var context = serviceScope.ServiceProvider.GetService<ApplicationDbContext>()){
|
||||
context.Database.Migrate();
|
||||
}
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI(settings =>
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user