public SQLClient() { ConnectionElement L_ConnEle = ConnectionManager.MainConnection; Conn = L_ConnEle.GetSqlConnection(); CommandTimeout = L_ConnEle.CommandTimeout; Open(); }
public OraClient() { ConnectionElement L_ConnEle = ConnectionManager.MainConnection; Conn = L_ConnEle.GetOracleConnection(); CommandTimeout = L_ConnEle.CommandTimeout; Open(); }
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(); }
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); }
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); }