Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processing of the LINQ expression 'GroupByShaperExpression #23650

Open
Tracked by #30173
TonyValenti opened this issue Dec 10, 2020 · 0 comments
Open
Tracked by #30173

Processing of the LINQ expression 'GroupByShaperExpression #23650

TonyValenti opened this issue Dec 10, 2020 · 0 comments

Comments

@TonyValenti
Copy link

This Code:

            var MatterTrustBalances = (
                from x in MatterTrust.GroupBy(x => x.Dest_Matter)
                let v = x.Select(x => x.Dest_Amount).Sum()
                select new {
                    Matter = x.Key,
                    Balance = Math.Max(0m, v)
                }).ToDictionary(x => x.Matter, x => x.Balance);

Generates this error:

System.InvalidOperationException: 'Processing of the LINQ expression 'GroupByShaperExpression:
KeySelector: _.Dest_Matter, 
ElementSelector:EntityShaperExpression: 
    EntityType: MatterTrustBalanceImportJob
    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.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants