我的 EntityFramework 中有一个多对多的关系。我想查询与特定“mannschaft”相关的所有“teilnehmer”。

这是我的查询
var teilnehmerquery = (from teil in myEntities.Teilnehmer 
                       from man in teil.Mannschaft 
                       where 1==man.MNR 
                       select teil);
如果我运行它,查询会抛出一个NotSupportedException. 怎么做才能让它工作?