using System; using System.Collections.Generic; using System.Linq; using System.Text; using MongoDB.Driver; class Program { static void Main(string[] args) { var server = MongoServer.Create(); server.Connect(); var database = server["test"]; database.RunCommand("repairDatabase"); } }