Hi, I have two tables Category 1..* Advertisement.
I want to get the advertisements Count for each category. To do so, I use that query:
var catList = (from c in DB.Category.Include("Advertisement")
select new { c.Name, c.Advertisement.Count }
).ToList();
How to access the e.g the first element's property Name and Count via View ?