I have a piece of sql similar to the code below that I wish to execute in my MVC site and display the results in the view:
select top 10 username, count(*)
from databasetable
group by username
order by count(*) desc
I've seen in many places that Entity Framework is the best way to do this, but i'm struggling to get it started and how to integrate it into my site. Can someone give me a push in the right direction on how to do it?
Thanks