摘要: GlobalConfiguration.Configuration.Formatters.Remove(config.Formatters.JsonFormatter); 阅读全文
posted @ 2015-09-22 19:03 -Ward- 阅读(471) 评论(0) 推荐(0) 编辑
摘要: ViewBag.TypeID = new SelectList(db.TType, "ID", "Name", model.TypeID); @Html.DropDownList("TypeID ") 阅读全文
posted @ 2015-08-25 10:30 -Ward- 阅读(391) 评论(0) 推荐(1) 编辑
摘要: q = q.Where(t => System.Data.Entity.SqlServer.SqlFunctions.DateDiff("dd", t.Date, dDate) == 0); 阅读全文
posted @ 2015-08-19 16:00 -Ward- 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 1 var objPar1 = new System.Data.Objects.ObjectParameter("ExeResults",typeof(bool));2 var objPar2 = new System.Data.Obj... 阅读全文
posted @ 2014-11-01 16:42 -Ward- 阅读(1495) 评论(0) 推荐(0) 编辑
摘要: 1.常用db.Entry(实体).State = EntityState.Modified;db.SaveChanges();2.指定更新db.Configuration.ValidateOnSaveEnabled = false;db.TUser.Attach(实体);ObjectStateEnt... 阅读全文
posted @ 2014-10-29 17:37 -Ward- 阅读(360) 评论(0) 推荐(0) 编辑