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