コード例 #1
0
 public void Configure()
 {
     if (configuration.ApplyMigrationsUponStartup == true ||
         (environment.IsDevelopment && configuration.ApplyMigrationsUponStartup != false))
     {
         Task.Run(async() => await executor.ExecuteAsync()).Wait();
     }
 }
コード例 #2
0
ファイル: DatabaseMigrator.cs プロジェクト: ualehosaini/Revo
        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.");
            }
        }