To get last 10 comments for each post I do:
select * from (
select *,Row_Number() orver(partition by postId order by id desc) RowNum
) where RowNum <= 10
Now how do I do exact same thing with Linq method chaining?
Edit: The above code is an example, What I exactly want to know is that how partitioning is done with linq.