Exemplo n.º 1
0
        public OLEDBCommand AddParameterMapping(string columnName, int parameterNumber)
        {
            Refresh();
            base.AddReadOnlyInputColumn(columnName);

            ComponentWrapper.MapInputColumn(DefaultInput.SSISObject.ID, base.FindSSISInputColumn(columnName).ID,
                                            DefaultInput.SSISObject.ExternalMetadataColumnCollection[parameterNumber].ID);
            return(this);
        }
Exemplo n.º 2
0
 private void MapInputColumn(Pipe.IDTSVirtualInputColumn100 virtualColumn, string destinationColumnName)
 {
     Pipe.IDTSInputColumn100 inputColumn = ComponentWrapper.SetUsageType(SSISDefaultInput.ID, DefaultVirtualInput, virtualColumn.LineageID, Pipe.DTSUsageType.UT_READONLY);
     ComponentWrapper.MapInputColumn(SSISDefaultInput.ID, inputColumn.ID, SSISDefaultInput.ExternalMetadataColumnCollection[destinationColumnName].ID);
 }