【发布时间】:2013-03-19 12:23:29
【问题描述】:
我的 EntityFramework 中有一个多对多的关系。我想查询与特定“mannschaft”相关的所有“teilnehmer”。
这是我的查询
var teilnehmerquery = (from teil in myEntities.Teilnehmer
from man in teil.Mannschaft
where 1==man.MNR
select teil);
如果我运行它,查询会抛出一个NotSupportedException。
怎样做才能让它发挥作用?
【问题讨论】:
-
如果我尝试 var teilnehmerquery = (来自 teil in myEntities.Teilnehmer from man in teil.Mannschaft where man.MNR==1 select teil);它仍然不起作用