0
我有这个数据集查询具有鲜明和ORDER BY
Id TypeId Description
-------------------------------
1 1 happy
2 1 sad
3 2 sad
4 2 sad
5 3 upset
6 1 upset
7 2 chilaxing
8 4 happy
,我试图让LINQ做到这一点:
select count(Id) as count, Type from MyDate
group by Description
order by count desc
所以我得到:
count Type
------------
3 sad
2 happy
2 upset
1 chilaxing
但是我正在尝试的是没有工作?
好温你这样做,它似乎很明显:) – user2472565