c# - Linq Query with SUM and ORDER BY -
One item is a (C #) square called hit with id id and a property property. I
I leave the remaining details to keep this balance. Now in my code, I have a large list, which I need to do the following selection (in a new list): I need to get a score of every hit. Score is for each individual hit. IitemID is sorted by the score, so if I have the following items in the original list
var q = (h from hit group h in new {h.ItemID} hh Select new {hh.Key.ItemID, score = hh.Sum (s => score)}). Orderbinding sensing (i => i.Score);
Comments
Post a Comment