Esempio n. 1
0
 public Union InsertOutputColumn(OutputColumn outputColumn, UnionInputColumn unionInputColumn)
 {
     return(this.InsertOutputColumn(outputColumn, new List <UnionInputColumn>()
     {
         unionInputColumn
     }));
 }
Esempio n. 2
0
        public Union InsertOutputColumn(OutputColumn outputColumn, List <UnionInputColumn> unionInputColumns)
        {
            Pipe.IDTSOutputColumn100 newSSISOutputColumn = Component.OutputCollection[0].OutputColumnCollection.New();
            newSSISOutputColumn.Name = outputColumn.Name;
            newSSISOutputColumn.SetDataTypeProperties((SSIS.Wrapper.DataType)outputColumn.DataType, outputColumn.Length, outputColumn.Precision, outputColumn.Scale, outputColumn.CodePage);
            foreach (UnionInputColumn unionInputColumn in unionInputColumns)
            {
                base.AddReadOnlyInputColumnForInput(unionInputColumn.ColumnName, unionInputColumn.InputName);
                Pipe.IDTSInputColumn100 inputColumn = base.FindSSISInputColumn(unionInputColumn.ColumnName, unionInputColumn.InputName);
                inputColumn.CustomPropertyCollection[0].Value = newSSISOutputColumn.LineageID;
            }

            return(this);
        }