List<string> migrations = (await context.Database.GetPendingMigrationsAsync()).ToList();
context is of the type that implements IMigration which is probably why the migrations are not found. Probably should be of the type of that directly implements DbContext.
List<string> migrations = (await context.Database.GetPendingMigrationsAsync()).ToList();contextis of the type that implements IMigration which is probably why the migrations are not found. Probably should be of the type of that directly implements DbContext.