ExecuteMongoCommand() public static méthode

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