sql group by 用linq 怎么写
select * from changelogs where id in( select max(ID) from changelogs group by changeID,changetype)
linq怎么写
------解决方案--------------------changelogs.GroupBy(l => new { l.changeID, l.changetype }).Select(k => new { ID = k.Max(m => m.id) })