Stef Heyenrath
Stef Heyenrath
@MoRooz If possible, provide a full working sample project.
When calling `ToArray()` on the **q1** like: ``` c# var q1 = context.Blogs.GroupBy(context.Blogs.KeySelectorExpression(groupByList)); var q1a = q1.ToArray(); ``` Already gives an exception: > System.InvalidOperationException: 'Client projection contains reference to constant...
See also - https://github.com/aspnet/EntityFrameworkCore/issues/17623 - https://github.com/aspnet/EntityFrameworkCore/pull/18051 - https://go.microsoft.com/fwlink/?linkid=2103067 When upgrading to 3.1 preview, I get this better error: > System.InvalidOperationException: 'Client projection contains reference to constant expression of 'Microsoft.EntityFrameworkCore.Metadata.IPropertyBase' which...
@MoRooz Thanks for researching. Would it be an idea to add this in a readable markdown format in a wiki? If so, can you please help.
@effapp Is the code `dbContext.Set("Customers")` from EntityFramework ? Or from EntityFramework Core?
Hello @stefanoyoyo, Can you please provide a full working example which describes this issue?
@bxjg1987 Can you please provide a full working example / demo code how this works in 'normal linq' and how it should work in dynamic linq?
Hello @guifuega, thank you for your observation. I'll take a look at the implementation and report back here.
@guifuega I did update the code, please check the PR: https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/620
Hello @guifuega, did you have to time to verify the PR?