How do I include a 2nd level table column in my linq query? I don't want .Net to perform lazy loading because there are other tables linked to these tables.
The table are
Quiz:
- Id
- Name
Questions:
- Id
- Name
- quizId
Options:
- id
- Name
- QuestionId
Quiz and Questions have a one-to-many relationship. Questions to Option also have a one-to-many relationship.
var quiz=db.Quiz.include(a=>a.Questions)......ToList();
How can I include Options columns in my linq query?