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

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

            Open();
        }
Exemplo n.º 2
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();
        }