GroupBy cannot be translated using
Hello I can't for example group data by month using one of class datetime attribute navigation property month
12 Replies
Do you get an error?
Yes. InvalidOperationException
that query can't be translated
https://www.inoaspect.com.au/entity-framework-core-ef-core-group-daily-data-to-monthly/ I was guided by this example
that tutorial wont even load
try this @kaziux
I did exactly the same way, but I get still the same exception
try with Month.Name
Or whatever
Groupby is very finicky and i can't see ur entities
you have to select something after grouping
so may query order is bad?
Impossible to use, because month itself is int property
ahh, in that case ya try the select way that entity said
i missed you didnt have one
and if you are grouping purely to just group, not doing any aggregations you may just need to do that after the query is materialized
I'm only do filtering query. No any agregrations like counting, average or something.
grouping would have to be done on the c# side then after the query is completed as that doesn't make sense in sql
I barely use grouping queries. I forgot that query is for aggregations