Ejemplo n.º 1
0
        private void MigrateToLatest(object sender, RoutedEventArgs e)
        {
            Ketchup.EntityFramework.Migrations.Runner.Migrator migrator = GetMigrator();


            migrator.MigrateToLastVersion();
            SetVersionToLastAppliedMigration(migrator);
        }
		private void SetVersionToLastAppliedMigration(Migrator migrator) {
			if(migrator.AppliedMigrations.Count > 0) {
				VersionField.Text = Convert.ToInt32(migrator.AppliedMigrations.Max()).ToString();
			} else {
				VersionField.Text = "0";
			}
		}