Ejemplo n.º 1
0
 /// <summary>
 /// ctor that accepts the parent data flow task and a name for the row component
 /// </summary>
 /// <param name="parentDataFlowTask"></param>
 /// <param name="componentName"></param>
 private ISSortComponent(ISDataFlowTask parentDataFlowTask, string componentName) :
     base(parentDataFlowTask, "Microsoft.Sort", componentName)
 {
     _numberOfInputsAllowed  = 1;
     _numberOfOutputsAllowed = 1;
     _input = ComponentMetaData.InputCollection[0];
 }
Ejemplo n.º 2
0
        /// <summary>
        /// an extended ctor that also connects to another component
        /// </summary>
        /// <param name="parentDataFlowTask"></param>
        /// <param name="componentName"></param>
        /// <param name="sourceComponent"></param>
        /// <param name="sourceOutputName"></param>
        public ISSortComponent(ISDataFlowTask parentDataFlowTask, string componentName, ISPipelineComponent sourceComponent,
                               string sourceOutputName = "") :
            this(parentDataFlowTask, componentName)
        {
            //  After adding hte derived column transformation, connect it to a prevoius component
            if (String.IsNullOrEmpty(sourceOutputName))
            {
                ConnectToAnotherPipelineComponent(sourceComponent.Name);
            }
            else
            {
                ConnectToAnotherPipelineComponent(sourceComponent.Name, sourceOutputName);
            }

            // set all usage to READONLY for all;
            string[] viCols = new string[_input.GetVirtualInput().VirtualInputColumnCollection.Count];
            for (int i = 0; i < viCols.Length; i++)
            {
                ISInputColumn ic = new ISInputColumn(this, _input.Name, _input.GetVirtualInput().VirtualInputColumnCollection[i].Name, UsageType.UT_READONLY, RowDisposition.RD_NotUsed, RowDisposition.RD_NotUsed);
                SetCustomPropertyToInputColumn(_input, GetInputColumn(_input.Name, ic.Name), "NewComparisonFlags", 0);
                SetCustomPropertyToInputColumn(_input, GetInputColumn(_input.Name, ic.Name), "NewSortKeyPosition", 0);
            }

            /*foreach (IDTSVirtualInputColumn100 vc in _input.GetVirtualInput().VirtualInputColumnCollection)
             * {
             *  Console.WriteLine("Working on " + vc.Name);
             *  ISInputColumn ic = new ISInputColumn(this, _input.Name, vc.Name, UsageType.UT_READONLY, RowDisposition.RD_NotUsed, RowDisposition.RD_NotUsed);
             *  SetCustomPropertyToInputColumn(_input, GetInputColumn(_input.Name, ic.Name), "NewComparisonFlags", 0);
             *  SetCustomPropertyToInputColumn(_input, GetInputColumn(_input.Name, ic.Name), "NewSortKeyPosition", 0);
             * }*/
        }
Ejemplo n.º 3
0
 public ISConditionalSplitComponent(ISDataFlowTask parentDataFlowTask, string componentName) :
     base(parentDataFlowTask, "Microsoft.ConditionalSplit", componentName)
 {
     _numberOfInputsAllowed  = 1;
     _numberOfOutputsAllowed = -1;
     this.DefaultOutputName  = "DefaultOutput";
 }
Ejemplo n.º 4
0
 /// <summary>
 /// ctor that accepts the parent data flow task and a name for the row component
 /// </summary>
 /// <param name="parentDataFlowTask"></param>
 /// <param name="componentName"></param>
 public ISDerivedColumnComponent(ISDataFlowTask parentDataFlowTask, string componentName) :
     base(parentDataFlowTask, "Microsoft.DerivedColumn", componentName)
 {
     _numberOfInputsAllowed  = 1;
     _numberOfOutputsAllowed = 1;
     _input = ComponentMetaData.InputCollection[0];
 }
Ejemplo n.º 5
0
 public ISLookupComponent(ISDataFlowTask parentDataFlowTask, string componentName) :
     base(parentDataFlowTask, "Microsoft.Lookup", componentName)
 {
     _numberOfInputsAllowed  = 1;
     _numberOfOutputsAllowed = 2;
     _renamedInputCols       = new List <string[]>();
     MatchOutput             = new ISOutput(this, 0);
     NoMatchOutput           = new ISOutput(this, 1);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// A ctor that accepts a parent data fllow, a name for the component and the previous component (and output) to which this is connected
 /// </summary>
 public ISScriptComponent(ISDataFlowTask parentDataFlowTask, string componentname, ISPipelineComponent sourceComponent, ISOutput sourceOutput, int thisComponentInput = 0) :
     this(parentDataFlowTask, componentname)
 {
     if (sourceOutput != null)
     {
         ConnectToAnotherPipelineComponent(sourceComponent.Name, sourceOutput.Name, thisComponentInput);
     }
     else
     {
         ConnectToAnotherPipelineComponent(sourceComponent.Name, sourceComponent.GetOutputFromIndex(0).Name, thisComponentInput);
     }
 }
Ejemplo n.º 7
0
 public ISConditionalSplitComponent(ISDataFlowTask parentDataFlowTask, string componentName, ISPipelineComponent sourceComponent,
                                    string sourceOutputName = "") :
     this(parentDataFlowTask, componentName)
 {
     //  After adding the transformation, connect it to a previous component
     if (String.IsNullOrEmpty(sourceOutputName))
     {
         ConnectToAnotherPipelineComponent(sourceComponent.Name);
     }
     else
     {
         ConnectToAnotherPipelineComponent(sourceComponent.Name, sourceOutputName);
     }
 }
Ejemplo n.º 8
0
 public ISLookupComponent(ISDataFlowTask parentDataFlowTask, string componentName, ISPipelineComponent sourceComponent,
                          string sourceOutputName = "") :
     this(parentDataFlowTask, componentName)
 {
     //  After adding hte derived column transformation, connect it to a prevoius component
     if (String.IsNullOrEmpty(sourceOutputName))
     {
         ConnectToAnotherPipelineComponent(sourceComponent.Name);
     }
     else
     {
         ConnectToAnotherPipelineComponent(sourceComponent.Name, sourceOutputName);
     }
 }
Ejemplo n.º 9
0
 public ISAdoNetSourceComponent(ISDataFlowTask parentDataFlowTask, string componentname, ISConnectionManager cm, bool connectionIsOffline = false) :
     this(parentDataFlowTask, componentname)
 {
     if (!(connectionIsOffline))
     {
         if (cm != null)
         {
             AssignConnectionManager(cm);
         }
         else
         {
             System.Console.WriteLine("WARN::: No Connection Manager is attached. Please use the AssignConnectionManager method to assign a Connection Manager.");
         }
     }
 }
Ejemplo n.º 10
0
        public ISAdoNetDestinationComponent(ISDataFlowTask parentDataFlowTask, string componentName,
                                            ISPipelineComponent sourceComponent,
                                            string sourceOutputName = "") :
            this(parentDataFlowTask, componentName)
        {
            if (String.IsNullOrEmpty(sourceOutputName))
            {
                ConnectToAnotherPipelineComponent(sourceComponent.Name);
            }
            else
            {
                ConnectToAnotherPipelineComponent(sourceComponent.Name, sourceOutputName);
            }

            InitDefaults();
        }
Ejemplo n.º 11
0
 public ISScriptComponent(ISDataFlowTask parentDataFlowTask, string componentname, string sourceComponentName, int sourceComponentOutputIndex = 0, int inputCollectionIndex = 0) :
     this(parentDataFlowTask, componentname)
 {
     ConnectToAnotherPipelineComponent(sourceComponentName, sourceComponentOutputIndex, inputCollectionIndex);
 }
Ejemplo n.º 12
0
 public ISAdoNetSourceComponent(ISDataFlowTask parentDataFlowTask, string componentname) :
     base(parentDataFlowTask, "Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter, Microsoft.SqlServer.ADONETSrc, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", componentname)
 {
     InitDefaults();
 }
Ejemplo n.º 13
0
 public ISOleDbDestinationComponent(ISDataFlowTask parentDataFlowTask, string componentname) :
     base(parentDataFlowTask, "Microsoft.OleDbDestination", componentname)
 {
     //InitDefaults();
     ExternalColumnInputColumnMap = new List <ExternalColumnInputMap>();
 }
Ejemplo n.º 14
0
 /// <summary>
 /// ctor that accepts the parent data flow task, a name for the component
 /// </summary>
 /// <param name="parentDataFlowTask"></param>
 /// <param name="componentname"></param>
 /// <param name="componentDescription"></param>
 public ISScriptComponent(ISDataFlowTask parentDataFlowTask, string componentname) :
     base(parentDataFlowTask, "Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost, Microsoft.SqlServer.TxScript, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", componentname)
 {
 }
Ejemplo n.º 15
0
 public ISFlatFileSourceComponent(ISDataFlowTask parentDataFlowTask, string componentname) :
     base(parentDataFlowTask, "Microsoft.FlatFileSource", componentname)
 {
     InitDefaults();
 }
Ejemplo n.º 16
0
 public ISConditionalSplitComponent(ISDataFlowTask parentDataFlowTask, string componentName,
                                    ISPipelineComponent sourceComponent,
                                    ISOutput sourceOutput) :
     this(parentDataFlowTask, componentName, sourceComponent, sourceOutput.Name)
 {
 }
Ejemplo n.º 17
0
 /// <summary>
 /// ctor that accepts the parent data flow task and a name for the row component
 /// </summary>
 /// <param name="parentDataFlowTask"></param>
 /// <param name="componentName"></param>
 public ISMulticastComponent(ISDataFlowTask parentDataFlowTask, string componentName) :
     base(parentDataFlowTask, "Microsoft.Multicast", componentName)
 {
     _numberOfInputsAllowed  = 1;
     _numberOfOutputsAllowed = -1;
 }
Ejemplo n.º 18
0
 /// <summary>
 /// ctor that accepts the parent data flow task and a name for the row component
 /// </summary>
 /// <param name="parentDataFlowTask"></param>
 /// <param name="componentName"></param>
 public ISRowCountComponent(ISDataFlowTask parentDataFlowTask, string componentName) :
     base(parentDataFlowTask, "Microsoft.RowCount", componentName)
 {
     _numberOfInputsAllowed  = 1;
     _numberOfOutputsAllowed = 1;
 }
Ejemplo n.º 19
0
 public ISDestinationComponent(ISDataFlowTask parentDataFlowTask, string componentMoniker, string componentname)
     : base(parentDataFlowTask, componentMoniker, componentname)
 {
 }
Ejemplo n.º 20
0
 public ISAdoNetDestinationComponent(ISDataFlowTask parentDataFlowTask, string componentname) :
     base(parentDataFlowTask, "Microsoft.SqlServer.Dts.Pipeline.ADONETDestination, Microsoft.SqlServer.ADONETDest, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", componentname)
 {
     //InitDefaults();
     ExternalColumnInputColumnMap = new List <ExternalColumnInputMap>();
 }
Ejemplo n.º 21
0
 public ISPipelineComponent(ISDataFlowTask parentDataFlowTask, string componentMoniker, string componentname) :
     this(componentname, componentMoniker, parentDataFlowTask.MainPipe)
 {
     ParentDataFlowTask = parentDataFlowTask;
 }
Ejemplo n.º 22
0
 public ISSourceComponent(ISDataFlowTask parentDataFlowTask, string componentMoniker, string componentname)
     : base(parentDataFlowTask, componentMoniker, componentname)
 {
 }