public void Configure() { if (configuration.ApplyMigrationsUponStartup == true || (environment.IsDevelopment && configuration.ApplyMigrationsUponStartup != false)) { Task.Run(async() => await executor.ExecuteAsync()).Wait(); } }
public async Task UpgradeAsync(UpgradeVerb verb) { await InitializeAsync(); var appliedMigrations = await executor.ExecuteAsync(); if (appliedMigrations.Count == 0) { Logger.Info("There are no pending migrations. No changes have been made."); } }