public static void UpdateDatabase(IApplicationBuilder app) { var context = app.ApplicationServices.GetRequiredService <AuthDbContext>(); context.Database.Migrate(); AuthDbContext.Seed(context); }