public void Migrate(string currentVersion, string nextVersion)
        {
            var now  = new SemanticVersion(currentVersion);
            var next = new SemanticVersion(nextVersion);

            _runner.Run(
                _tasks.Where(
                    t =>
                    t.CurrentVersion.CompareTo(now) >= 0 &&
                    (t.NextVersion != null && t.NextVersion.CompareTo(next) <= 0)).OrderBy(t => t.CurrentVersion).
                ToArray());
        }
Ejemplo n.º 2
0
 public void Run(params IMigrationTask[] tasks)
 {
     _runner.Run(tasks);
 }
 public void Run(params IMigrationTask <TDatabase>[] tasks)
 {
     _runner.Run(tasks);
 }