Esempio n. 1
0
        public SQLClient()
        {
            ConnectionElement L_ConnEle = ConnectionManager.MainConnection;

            Conn           = L_ConnEle.GetSqlConnection();
            CommandTimeout = L_ConnEle.CommandTimeout;

            Open();
        }
Esempio n. 2
0
        public OraClient()
        {
            ConnectionElement L_ConnEle = ConnectionManager.MainConnection;

            Conn           = L_ConnEle.GetOracleConnection();
            CommandTimeout = L_ConnEle.CommandTimeout;

            Open();
        }
Esempio n. 3
0
        public SQLClient(string Ps_Name)
        {
            DBName = Ps_Name;
            ConnectionElement L_ConnEle = (DBName == string.Empty) ? ConnectionManager.MainConnection :
                                          ConnectionManager.ConnectionList[DBName];

            Conn           = L_ConnEle.GetSqlConnection();
            CommandTimeout = L_ConnEle.CommandTimeout;

            Open();
        }
Esempio n. 4
0
        public static void Add(string Ps_Name, string Ps_Address, int Pi_Port, string Ps_Catalog, string Ps_User, string Ps_Password, int Pi_ConnectionTime, int Pi_CommandTime)
        {
            ConnectionElement L_Element = new ConnectionElement(Ps_Address, Pi_Port, Ps_Catalog, Ps_User, Ps_Password, Pi_ConnectionTime, Pi_CommandTime);

            ConnectionList.Add(Ps_Name, L_Element);
        }
Esempio n. 5
0
        public static void Add(string Ps_Name, string Ps_Address, string Ps_Catalog, string Ps_User, string Ps_Password)
        {
            ConnectionElement L_Element = new ConnectionElement(Ps_Address, Ps_Catalog, Ps_User, Ps_Password);

            ConnectionList.Add(Ps_Name, L_Element);
        }