entity framework - Use 'Average()' On EF CORE (C# .NET CORE) -
i use .net core while , noticed queries run strange, did profiling , noticed queries , running in parts on database, instead of getting in 1 shot. turned off option 'queryclientevaluation' ef core , keep getting error
linq expression 'average()' not translated , evaluated locally.
which strange because used average
function in ef6 till no issue, why should need use queryclientevaluation??
here simple sample _context.reviews.select(r => r.rating).average()
which version using?
it bug #7190 has been fixed @ version 2.0.0-preview1. can have latest released version 2.0.0 .
Comments
Post a Comment