I have SQL Query
SELECT project_id,count(project_id) as vote_count from Votesgroup by project_id;
And how i can write this with LINQ? My LINQ starting code:
private int GetCountOfVotes()
{
using (var db = new SafetyFundDbContext(Options))
{
return db.Votes.Select()
}
}
Sorry, Yes I know question is so stupid, but Im newbie :D .