Exemplo n.º 1
0
        public IDbCommand GetIDbCommand(string key)
        {
            var s = MySqlDbConfigManager.GetDBconfigManager().GetConntonString(key);

            this._con = this._con ?? new MySqlConnection(s);
            this._con.Open();
            return(this._con.CreateCommand());
        }
Exemplo n.º 2
0
 public static MySqlDbConfigManager GetDBconfigManager(string key = "DbConfiguration")
 {
     obj = obj ?? new MySqlDbConfigManager(key);
     return(obj);
 }