Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • What are u talking about? Plz read the Q again: How can I load the Parent (level 1) whit all associated children (level 2) and for each child, associated grandchild (level 3) if any? I know how to map entities, and know how to load them in 2-level relationship Parent-Child. But I can't load a 3-level association. Just this! Commented Sep 22, 2011 at 1:00
  • What do you mean by "load"? Do you mean select? Commented Sep 22, 2011 at 1:04
  • Load from database, fetch from db, select. Like this: entity.DynamicPages.Where(d => d.ParentId == null).Include(d => d.Children).ToList(); I know this, but I want to load d.Children.Children that I can't ): Commented Sep 22, 2011 at 1:08
  • Updated my answer. Hopefully this is what you were looking for. Commented Sep 22, 2011 at 1:12
  • 1
    Now that I see Slauma's answer, I get what you were looking for. And I also learned something, so no problem. Commented Sep 23, 2011 at 1:06