Convert this sql to Entity Framework

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
asaf_messika
Posts: 1
Joined: Wed 18 Jul 2012 19:07

Convert this sql to Entity Framework

Post by asaf_messika » Wed 18 Jul 2012 23:00

Hello,

I'm want to convert this sql query to Entity Framework,
how can I do it?

this is the code(found the popular HobbyCode):

select HobbyCode,count(HobbyCode)
from UserFavorites
group by HobbyCode
having count(*) >= all (select count(HobbyCode)
from UserFavorites
group by HobbyCode);

Thanks a lot.
Asaf

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Convert this sql to Entity Framework

Post by Shalex » Wed 25 Jul 2012 13:47

Sorry but this question exceeds the goals of our support (non provider-specific). We recommend you to post it at http://www.stackoverflow.com.

Post Reply