6
我想创建此查询:有和条件计数()在LINQ查询
select Something, count(Something) as "Num_Of_Times"
from tbl_results
group by Something
having count(Something)>5
我开始用这样的:
tempResults.GroupBy(dataRow => dataRow.Field<string>("Something"))
.Count() //(.......what comes here , to make Count()>5?)
非常感谢你,我 需要的结果作为IQueryable的, 有没有一种方法来创建“选择”的结果作为一个IQueryable的?或者我需要手动创建行? –
Rodniko
2009-08-26 10:42:10
查看更新的答案 – 2009-08-26 12:19:26
非常感谢你:) – Rodniko 2009-08-26 13:15:19