mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
Сделал список OID адресов, добавил миграцию бд при запуске программы
This commit is contained in:
1 parent
48e625819a
commit
bd426d2647
35 files changed
+927
-46
No files matched your search
@@ -51,8 +51,14 @@ builder.Services.AddDbContext<AppDbContext>(options =>
|
||||
builder.Configuration.GetConnectionString("SQL"));
|
||||
});
|
||||
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
using (var scope = app.Services.CreateScope())
|
||||
{
|
||||
var db = scope.ServiceProvider.GetRequiredService<AppDbContext>();
|
||||
await db.Database.MigrateAsync();
|
||||
}
|
||||
app.UseBlazorFrameworkFiles();
|
||||
app.UseStaticFiles();
|
||||
app.UseRouting();
|
||||
|
||||
Reference in new issue
Block a user