select
count(di.field1) as myCount,
di.field2
from di
group by di.field2
我试图理解这个概念:
group di.field2 by new { di.field1, di.field2 } into g
select new
{
documentID = g.Key.field2,
docCount = g.Count(????)
});
我如何获得 field1 计数的值?