我在我的EntityFramework中有多对多的关系。我想查询所有与特定“mannschaft”有关的“teilnehmer”。LINQ多对多的查询抛出NotSupportedException
这里是我的查询
var teilnehmerquery = (from teil in myEntities.Teilnehmer
from man in teil.Mannschaft
where 1==man.MNR
select teil);
如果我运行它,查询抛出一个NotSupportedException
。 怎么做才能使这个工作?
如果我尝试 VAR teilnehmerquery =(从人在teil.Mannschaft在myEntities.Teilnehmer TEIL其中man.MNR == 1选择TEIL); 它仍然不工作 – user2147674 2013-03-19 12:27:28