I’m trying to figure out how to select the leading bids in a table called bids using linq.
The results needs to take the highest bid for each unique userId and display that ordered by bidValue
bids table:
bidId 1, userid 1, bidValue = 10
bidId 2, userid 2, bidValue = 20
bidId 3, userid 3, bidValue = 20
bidId 4, userid 1, bidValue = 30
bidId 5, userid 2, bidValue = 40
bidId 6, userid 1, bidValue = 50
outcome:
bidId 6, userid 1, bidValue 50
bidId 5, userid 2, bidValue 40
bidId 3, userid 3, bidValue 20
Something like this should work