C#编程
longyunyinxue
这个作者很懒,什么都没留下…
展开
-
Linq左链接查询
第一次用到linq链接查询,mark一下;cms.MemberShipId是MemberShip的主键ID var list = from ms in dbContext.MemberShip join cms in dbContext.CustomerMemberShip on new { aa = ms.Id, bb = custome...原创 2018-05-14 10:01:15 · 737 阅读 · 0 评论 -
两表关联查询,根据某一列去重复
var product = (from p in dbContext.Product join gp in dbContext.GroupProduct on p.Id equals gp.ProductId where p.IsActive == true &&...原创 2018-05-14 10:07:54 · 2296 阅读 · 1 评论