Aug 10, 2020 12:27 PM|PatriceSc|LINK
What if you try something such as :
var ratings = from rs in DataContext.Ratings
group rs by rs.AlbumId
AlbumId = averageRatings.Key,
AlbumAverage = averageRatings.Average(a => a.Rating)
which should be translated to a https://www.w3schools.com/sql/sql_having.asp clause so that the filtering happens on the db side.