Esempio n. 1
0
        public IDbCommand GetIDbCommand(string key)
        {
            var s = SqlDbConfigManager.GetDBconfigManager().GetConntonString(key);

            this._con = this._con ?? new SqlConnection(s);
            this._con.Open();
            return(this._con.CreateCommand());
        }
Esempio n. 2
0
 public static SqlDbConfigManager GetDBconfigManager(string key = "DbConfiguration")
 {
     obj = obj ?? new SqlDbConfigManager(key);
     return(obj);
 }