0
다음 시나리오에서 ExceptionAppointment를 열심히로드해야합니다.Entity Framework - 열심히 Linq 쿼리로드
I 3 개 테이블을 가지고 ExceptionAppointment 1 관계 :
- 약속 1을 갖는다
나는 ExecutionOccurrence를 사용하여 열심히로드 할 수 있음을 알고 있습니다.
context.Appointments.Include(a => a.ExceptionOcurrences).ToList();
하지만 ExceptionAppointment도 포함하도록 표현식을 변경하려면 어떻게해야합니까?
건배 애비
가 되세요 ', 당신은'context.Appointments.Include (A => a.ExceptionOcurrences.ExceptionAppointment) .ToList()를 시도? – LukLed
ExceptionAppointment의 ExceptionOcurrences에 대한 옵션이 없습니다. 있어야할까요? – user1460473
죄송합니다 :'context.Appointments.Include ("ExceptionOcurrences.ExceptionAppointment") .ToList()'. ExceptionOccurence에 ExceptionAppointment 탐색 속성이 있습니까? – LukLed