Since this question is also noted by w / C #, I assume that you are also interested in doing it in C #. Here is the linq-to-sql equivalent of SQL code.
public IEnumerable<Bonus> GetHighestValues() { var query = (from b in _context.bonus take 10 orderby b.period1_bonus descending select b); return query; }
Edit - I see that the C # tag is now removed from the question. However, my answer may help you (or others).
Wefx source share