OrderBy not having any effect in LINQ

后端 未结 2 1196
遇见更好的自我
遇见更好的自我 2021-01-28 17:36

I have a table that has a set of data in it, as follows:

Notice the above results are gathered by the following SQL query:

select * from Logs wh         


        
2条回答
  •  南方客
    南方客 (楼主)
    2021-01-28 18:15

    .Distinct destroys order. Switch the position of the Distinct and the OrderBy calls.

提交回复
热议问题