Ejemplo n.º 1
0
 public ISScriptComponentConnection(ISScriptComponent parentComponent, ISConnectionManager referenceConnection, string connectionNameInComponent)
 {
     _connection = parentComponent.AddConnection_m(referenceConnection.Name, connectionNameInComponent);
     if (parentComponent.SourceCode.Length > 0)
     {
         parentComponent.RebuildProject(null);
     }
 }
Ejemplo n.º 2
0
 public void AssignConnectionManager(ISConnectionManager cm)
 {
     AssignConnectionManager(cm.ConnectionManager);
     if (!(String.IsNullOrEmpty(TableOrViewName)))
     {
         RetrieveMetaData(Connection, DestinationPassword);
     }
 }
Ejemplo n.º 3
0
        public bool RetrieveMetaData(ISConnectionManager connMgr, string password)
        {
            string            origConn = ComponentMetaData.RuntimeConnectionCollection[0].Name;
            ConnectionManager cm       = ParentDataFlowTask.RootPackage.Connections.Add(connMgr.CreationName) as ConnectionManager;

            cm.Name             = "DummyConnToForce";
            cm.ConnectionString = connMgr.ConnectionString;
            cm.Properties["Password"].SetValue(cm, password);
            SetUpConnection(cm);
            bool success = RetrieveMetaData();

            SetUpConnection(GetConnectionManager(origConn));
            ParentDataFlowTask.RootPackage.Connections.Remove("DummyConnToForce");
            return(success);
        }
Ejemplo n.º 4
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.º 5
0
 public void AssignConnectionManager(ISConnectionManager cm)
 {
     AssignConnectionManager(cm.ConnectionManager);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Add a connection to the script component
 /// </summary>
 /// <param name="referenceConnection"></param>
 /// <param name="connectionNameInComponent"></param>
 public void AddConnection(ISConnectionManager referenceConnection, string connectionNameInComponent)
 {
     AddConnection_m(referenceConnection.Name, connectionNameInComponent);
 }
Ejemplo n.º 7
0
 public void AssignConnectionManager(ISConnectionManager cm)
 {
     AssignConnectionManager(cm.ConnectionManager);
     RetrieveMetaData();
 }