InvalidOperationException on $apply query from EF Core
I am getting this expection on $apply query: System.InvalidOperationException HResult=0x80131509 Message=Processing of the LINQ expression 'GroupByShaperExpression: KeySelector: new NoGroupByWrapper(), ElementSelector:EntityShaperExpression: EntityType: Student ValueBufferExpression: ProjectionBindingExpression: EmptyProjectionMember IsNullable: False ' by 'RelationalProjectionBindingExpressionVisitor' failed. This may indicate either a bug or a limitation in Entity Framework. See https://go.microsoft.com/fwlink/?linkid=2101433 for more detailed information. Source=Microsoft.EntityFrameworkCore.Relational
It is happening when I use $apply to query from ef core. Here is example of query: https://localhost:44383/Student?$apply=aggregate($count as OrderCount)
Here is controller:
var query = MyDBContext.Set<Student>().AsQueryable();
var res = queryOptions.ApplyTo(query);
My project is in .NET 5
Any comments?
Hi guys, is there any updates/suggestions?