public override void AddTask(IDatabaseTask task)
        {
            NumericVersionTask script = new NumericVersionTask(this, task.FileName);

            script.ExecutionOrder = task.ExecutionOrder;
            this.Tasks.Add(script);
        }
Exemple #2
0
        public override bool Equals(object obj)
        {
            NumericVersionTask script = obj as NumericVersionTask;

            if (object.ReferenceEquals(script, null))
            {
                return(false);
            }

            return(this.Version.Equals(script.Version) &&
                   this.Name.Equals(script.Name, StringComparison.InvariantCultureIgnoreCase));
        }