2017年2月3日
摘要: ```code respository.GetPaged(out count, m => m.LoginName.Contains("a"),"LoginName asc,LoginNum desc", 1, 20); public IList GetPaged(out int total, Expression> filter = null, Func, IOrderedQu... 阅读全文
posted @ 2017-02-03 23:54 雪夜 阅读(146) 评论(0) 推荐(0) 编辑
摘要: ```code /// /// 直接获取特定一个或者多个字段的值 /// 多个字段需要声明Model /// var s= testDal.GetScalar(m=>m.Code== "02018",m=>new { m.Name,m.Code }); /// var a = s.Name; //... 阅读全文
posted @ 2017-02-03 23:40 雪夜 阅读(157) 评论(0) 推荐(0) 编辑
摘要: ```code // ////1 public Task ReservedQuantity(long productId, long skuId, int reservedQuantity, long userId) { return Update(i => new Inventory { ReservedQuantity = i.ReservedQuantity + r... 阅读全文
posted @ 2017-02-03 23:23 雪夜 阅读(346) 评论(0) 推荐(0) 编辑