add duty-time and poi (จาก google maps ไปก่อน)
This commit is contained in:
parent
43932f742b
commit
78f8c0813c
30 changed files with 3395 additions and 4 deletions
|
|
@ -8,7 +8,6 @@ using Microsoft.AspNetCore.Mvc;
|
|||
using Microsoft.AspNetCore.Mvc.ApiExplorer;
|
||||
using Microsoft.AspNetCore.Mvc.Versioning;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Microsoft.IdentityModel.Logging;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using Serilog;
|
||||
|
|
@ -124,9 +123,9 @@ var app = builder.Build();
|
|||
app.UseMiddleware<ErrorHandlerMiddleware>();
|
||||
|
||||
// apply migrations
|
||||
await using var scope = app.Services.CreateAsyncScope();
|
||||
await using var db = scope.ServiceProvider.GetRequiredService<ApplicationDBContext>();
|
||||
await db.Database.MigrateAsync();
|
||||
//await using var scope = app.Services.CreateAsyncScope();
|
||||
//await using var db = scope.ServiceProvider.GetRequiredService<ApplicationDBContext>();
|
||||
//await db.Database.MigrateAsync();
|
||||
|
||||
// seed default data
|
||||
await CommandDataSeeder.SeedData(app);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue