ExecuteMongoCommand() public static method

当前对象的MONGO命令
public static ExecuteMongoCommand ( MongoCommand mMongoCommand ) : CommandResult
mMongoCommand MongoCommand 命令对象
return MongoDB.Driver.CommandResult
Beispiel #1
0
 /// <summary>
 ///     压缩
 /// </summary>
 public static void Compact()
 {
     CommandExecute.ExecuteMongoCommand(DataBaseCommand.CompactCommand);
 }
Beispiel #2
0
 /// <summary>
 ///     修复和压缩数据库
 /// </summary>
 public static void RepairDb()
 {
     CommandExecute.ExecuteMongoCommand(DataBaseCommand.RepairDatabaseCommand);
 }