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