public ActionResult DeleteBulk() { Stopwatch sw = new Stopwatch(); sw.Start(); testService.BulkDelete(t => t.id5 == "呵呵哒"); sw.Stop(); var temp = sw.Elapsed; string date = "5W数据 使用BulkDelete的批量删除总耗时为:" + temp.ToString(); return(Content(date)); }