public ActionResult Index(int args, string check)
{
int count = args;
EF_Test test = new EF_Test();
Random ra = new Random();
System.Text.StringBuilder result = new System.Text.StringBuilder();
var now1 = DateTime.Now.TimeOfDay;
result.Append(string.Format("
{0}开始将数据Add到上下文中,数据量:{1}
", now1, count));{0}数据Added完毕,开始执行Insert操作,耗时{1}
", now2, now2 - now1));AutoDetectChangesEnabled 状态:{0}
", db.Configuration.AutoDetectChangesEnabled));{0}Insert完毕,耗时{1}
", now3, now3 - now2));