var ListInOrder = (from f in finaldatelist
group f by new { f.RoomID, f.RateGroupID } into g
select g);
成g和select g部分的lambda表达式是什么?
这就是我现在得到的:
var ListInOrder = finaldatelist.GroupBy(x => x.RoomID, x => x.RateGroupID).Select();
最佳答案
finaldatelist.GroupBy(x => new { x.RoomID, x.RateGroupID });
关于c# - Linq to Lambda表达式C#,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/50500028/