SyntaxFix
Write A Post
Hire A Developer
Questions
I think you want something like
var count = context.MyTable.Count(t => t.MyContainer.ID == '1');
(edited to reflect comments)