public JsonResult CreateIndex(uint id, string data)
 {
     var mongo = new MongoIndexContext(id);
     mongo.CreateIndex(data);
     return Json(new { Success = true, Message = "索引创建成功" });
 }
 public JsonResult DeleteIndex(uint id, uint idx)
 {
     var mongo = new MongoIndexContext(id);
     mongo.DeleteIndex(idx);
     return Json(new { Success = true, Message = "索引删除成功" });
 }
 public ActionResult ShowIndex(uint id)
 {
     var mongo = new MongoIndexContext(id);
     var model = new ShowIndexModel
     {
         ID = id,
         TblID = mongo.Table.ID,
         Title = mongo.Table.FullInfo,
         Fields = mongo.GetFieldNodes(),
         Indexes = mongo.GetIndexes()
     };
     return View(model);
 }