I have structure like this
class Lesson {
List<Sign> signs { get; set; }
}
class Sign {
List<Media> media { get; set;}
}
class Media {
}
Now I'm using this LINQ to get all lessons
var items = (from lesson in this.db.Lesson.Include("Sign")
where lesson.module_id == param
select lesson);
It works fine but signs list has ampty media list. I mean that attribute media
in each object Sign
equals null. What do I need to do to include media objects for each Sign ? Whole data is kept in database