나는 내 EntityFramework에서 다 대다 관계를 가지고 있습니다. 특정 "mannschaft"와 관련된 모든 "teilnehmer"쿼리를 원합니다.LINQ 많은 쿼리에서 많은 수의 throws NotSupportedException
여기에 내가 그것을 실행하는 경우, 조회가 NotSupportedException
을 던져 내 쿼리
var teilnehmerquery = (from teil in myEntities.Teilnehmer
from man in teil.Mannschaft
where 1==man.MNR
select teil);
입니다. 이 작업을 수행하려면 어떻게해야합니까?
을 시도 var에 teilnehmerquery = (teil.Mannschaft에서 사람에서 myEntities.Teilnehmer의 teil에서 어디 man.MNR == 1을 선택 teil); 여전히 작동하지 않습니다 – user2147674