/// <summary> /// Commits the PrecedenceConstraint once all the referenced objects are created. /// </summary> public void Commit() { DTS.PrecedenceConstraint pc = ParentContainer.PrecedenceConstraints.Add( ParentContainer.Executables[from], ParentContainer.Executables[to]); pc.Name = this.Name; }
public void AddPrecedenceConstraint(DTS.Executable from, DTS.Executable to, DTS.IDTSSequence parentContainer) { if (from != null && to != null && parentContainer != null) { if ( parentContainer.Executables.Contains(this.ExtractNameFromDTSExecutable(from)) && parentContainer.Executables.Contains(this.ExtractNameFromDTSExecutable(to)) ) { DTS.PrecedenceConstraint pc = parentContainer.PrecedenceConstraints.Add(from, to); pc.Name = ExtractNameFromDTSExecutable(from) + "_" + ExtractNameFromDTSExecutable(to); } } }