I spend a few hours trying to translate simple SQL to lambda LINQ
SELECT ID, AVG(Score) FROM myTable GROUP BY ID
Any idea?
var _result = from a in myTable group a by a.ID into g select new { ID = g.Key.ID, AverageResult = g.Average(x => x.Score) }