예제 #1
0
        public ISCrmDestination(ISDataFlowTask parentDataFlowTask, string componentName,
                                ISPipelineComponent sourceComponent,
                                string sourceOutputName = "", ISConnectionManager iSConnectionManager = null, bool connectionIsOffline = false) :
            this(parentDataFlowTask, componentName)
        {
            if (String.IsNullOrEmpty(sourceOutputName))
            {
                ConnectToAnotherPipelineComponent(sourceComponent.Name);
            }
            else
            {
                ConnectToAnotherPipelineComponent(sourceComponent.Name, sourceOutputName);
            }

            if (!(connectionIsOffline))
            {
                if (iSConnectionManager != null)
                {
                    AssignConnectionManager(iSConnectionManager);
                }
                else
                {
                    System.Console.WriteLine("WARN::: No Connection Manager is attached. Please use the AssignConnectionManager method to assign a Connection Manager.");
                }
            }
            InitDefaults();
        }
예제 #2
0
        public ISOleDbDestinationComponent(ISDataFlowTask parentDataFlowTask, string componentName,
                                           ISPipelineComponent sourceComponent,
                                           string sourceOutputName = "") :
            this(parentDataFlowTask, componentName)
        {
            if (String.IsNullOrEmpty(sourceOutputName))
            {
                ConnectToAnotherPipelineComponent(sourceComponent.Name);
            }
            else
            {
                ConnectToAnotherPipelineComponent(sourceComponent.Name, sourceOutputName);
            }

            InitDefaults();
        }