I need to group by Names and to sum all the instance of the name this is my code in the controller:
public class FansController : Controller { private dbFan
see this
Selecting count in LINQ
And try something like:
var group = (from f in db.fans group f by a.Name into g select new { Name = g.Name, Count = g.Count() });