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