随笔分类 -  EF

EF基本操作
摘要:直接上代码 using (var db = Context) { using (var TR = db.Database.BeginTransaction()) { try { GoodsImg model = new GoodsImg(); model.CreateTime = DateTime. 阅读全文
posted @ 2021-03-11 18:09 大洋彼岸。 阅读(316) 评论(0) 推荐(0)
摘要:public ActionResult GetCourseList() { var mo = from e in gzhContext.WxCourseList.Select(m=>new { m.Id,m.Title,m.CourseName,m.Coursetype,m.StartTime, m 阅读全文
posted @ 2020-05-11 10:29 大洋彼岸。 阅读(399) 评论(0) 推荐(0)