Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 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);
         }
     }
 }