I need to eager load the ExceptionAppointment in the following scenario.
I have 3 tables: Appointment, ExceptionOccurrence, ExceptionAppointment with the following relationships
- Appointment has a 1:m relationship with ExceptionOccurrence
- ExceptionOccurrence has a 1:1 relationship with ExceptionAppointment
I know I can eager load the ExecptionOccurrence using
context.Appointments.Include(a => a.ExceptionOcurrences).ToList();
but how do I change the expression to include the ExceptionAppointment as well?
Cheers Abs