17,741
社区成员
发帖
与我相关
我的任务
分享
var query = from a in db.ta
join b in db.tb on ta.id equals tb.id into j1
join c in db.tc on tc.id equals j1.cid into j
where j.ctext == strMyCondition
group j by new { j.name, j.id, j.atext, j.ctext } into g
select new { g.First(), NameCount = g.Count() };
var query = from a in db.ta
join b in db.tb on ta.id equals tb.id into j1
join c in db.tc on tc.id equals j1.cid into j
where j.ctext == strMyCondition
group j by new { j.name, j.id, j.atext, j.ctext } into g
select new { g, NameCount = g.Count() };
var query = from a in db.ta
join b in db.tb on ta.id equals tb.id into j
where j.ctext == strMyCondition
group j by new { j.name, j.id, j.atext, j.ctext } into g
select new { g, NameCount = g.Count() };