/// <summary> /// rename Collection /// </summary> /// <returns></returns> public Hashtable RunCommand(String DatabaseName, String command) { //数据库连接 if (_connectionConfig.IsAutoCloseConnection == false) { if (_database.CheckStatus() == false) { throw new Exception("databse connect not open"); } } if (_connectionConfig.IsAutoCloseConnection == true) { _database.Open(); } Hashtable ht = _database.RunCommand(DatabaseName, command); if (_connectionConfig.IsAutoCloseConnection == true) { _database.Close(); } return(ht); }