예제 #1
0
 public void Configure()
 {
     if (configuration.ApplyMigrationsUponStartup == true ||
         (environment.IsDevelopment && configuration.ApplyMigrationsUponStartup != false))
     {
         Task.Run(async() => await executor.ExecuteAsync()).Wait();
     }
 }
예제 #2
0
        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.");
            }
        }