I\'m trying to determine how to count the matching rows on a table using the EntityFramework.
The problem is that each row might have many
I think this should work...
var query = from m in context.MyTable where m.MyContainerId == '1' // or what ever the foreign key name is... select m; var count = query.Count();