LINQ 查询
程序员文章站
2022-07-04 08:43:36
...
var query = from t in dt.AsEnumerable()
group t by new { t1 = t.Field<string>("areaid"), t2 = t.Field<string>("seq") } into m
select new
{
areaid = m.Key.t1,
seq = m.Key.t2,
house = m.First().Field<string>("house"),
rowcount = m.Count()
};
点击打开链接 博客园上面的关于LIST用LINQ查询的语句下一篇: LINQ