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()); }
public static SqlDbConfigManager GetDBconfigManager(string key = "DbConfiguration") { obj = obj ?? new SqlDbConfigManager(key); return(obj); }