Use correct DBContext class
This commit is contained in:
parent
9b2b65a152
commit
d21a759ef4
@ -22,7 +22,7 @@ class Program
|
||||
public static async void RunMigrations(IWebHost app)
|
||||
{
|
||||
await using var scope = app.Services.CreateAsyncScope();
|
||||
await using var db = scope.ServiceProvider.GetService<DbContext>();
|
||||
await using var db = scope.ServiceProvider.GetService<DBContext>();
|
||||
|
||||
if (db != null) {
|
||||
await db.Database.MigrateAsync();
|
||||
|
Loading…
Reference in New Issue
Block a user