Group By Query with Entity Framework

c# entity-framework entity-framework-6 group-by linq

Question

I have a Movements and a category connected in my application. I need a rundown of the most typical category.

My goals are:

catId, catName: Category
Movid, movDate, movMount, Movement, catId

I believe a "Group By" query (grouping by catId and getting those more) would be necessary (I'm using Entity Framework 6 in c#).

I already want to say thank you.

1
2
4/6/2014 11:35:35 PM

Accepted Answer

ZZZ_tmp
1
4/7/2014 6:38:48 PM

Popular Answer

Important: GroupBy(), which is used to translate to GROUP BY in produced SQL, is not yet supported by Entity Framework 7 (now renamed to Entity Framework Core 1.0). Any grouping logic will be executed on the client, which may result in a large amount of data being loaded.

https://blogs.msdn.microsoft.com/dotnet/2016/05/16/announcing-entity-framework-core-rc2



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow