Let's say I have a Comments table with these columns: Id, Comment, Category, CreatedDate, CommenterId
I want to get the 5 best categories from the Comments table (depending on the amount of each category in this table). How to do it in linq to return List or IQueryable?
source
share