How to use GroupBy in an asynchronous manner in EF Core 3.1?
问题 When I use GroupBy as part of a LINQ query to EFCore, I get the error System.InvalidOperationException: Client-side GroupBy is not supported . This is because EF Core 3.1 attempts to evaluate queries on the server-side as much as possible, as opposed to evaluating them on the client-side, and the call cannot be translated to SQL. So the following statement does not work, and produces the error mentioned above: var blogs = await context.Blogs .Where(blog => blog.Url.Contains("dotnet"))