Group by with multiple columns using lambda

后端 未结 5 827
一个人的身影
一个人的身影 2020-12-02 16:09

How can I group by with multiple columns using lambda?

I saw examples of how to do it using linq to entities, but I am looking for lambda form.

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 16:46

    var query = source.GroupBy(x => new { x.Column1, x.Column2 });
    

提交回复
热议问题