public void Execute() { var migrations = _repo.GetAll().OrderBy(m => m.Config.created).ToList(); string sql = ""; if (_direction == Direction.Up) { foreach (var migration in migrations) { sql += migration.UpSql; } } _db.Execute(sql); }
public void Execute() { var migrations = _repo.GetAll().OrderBy(m => m.Config.created).ToList(); string sql = ""; if (_direction == Direction.Up) { foreach (var migration in migrations) { sql += migration.UpSql; } } _db.Execute(sql); }