We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With efcore 5 it is not possible to create an aggregate from an owned entity.
Following throws an exception
[Owned] public sealed class Stats { public int Value1 { get; set; } } var query = context.Records .GroupBy(n => n.Category) .Select(g => new { Category = g.Key, Total: g.Sum(n => n.Stats.Value1) });
Same query and it works
var query = context.Records .Select(n => new { n.Category, n.Stats.Value1 }) .GroupBy(n => n.Category) .Select(g => new { Category = g.Key, Total: g.Sum(n => n.Value1) });
The text was updated successfully, but these errors were encountered:
Duplicate of #22609
Sorry, something went wrong.
ok, did found it
No branches or pull requests
With efcore 5 it is not possible to create an aggregate from an owned entity.
Following throws an exception
Same query and it works
The text was updated successfully, but these errors were encountered: