【发布时间】:2015-04-16 06:58:43
【问题描述】:
我有以下 linq 查询
var temp = (from p in db.BEM_EVT_FULL
where (p.date_reception > dt)
group p by p.mc_object into g
orderby g.Count() descending
select new StringIntType
{
str = g.Key,
nbr = g.Count()
}).Take(50).ToList();
我需要将 Dictionary 与 int 和 string 类型一起使用,而不是将结果转换为 StringIntType。
【问题讨论】:
标签: c# asp.net linq entity-framework