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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -