{"action":"opened","issue":{"url":"https://api.github.com/repos/deyunote/EntityFramework.Include/issues/3","repository_url":"https://api.github.com/repos/deyunote/EntityFramework.Include","labels_url":"https://api.github.com/repos/deyunote/EntityFramework.Include/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/deyunote/EntityFramework.Include/issues/3/comments","events_url":"https://api.github.com/repos/deyunote/EntityFramework.Include/issues/3/events","html_url":"https://github.com/deyunote/EntityFramework.Include/issues/3","id":208868748,"number":3,"title":"How can I include 3 levels of objects hierarchy?","user":{"login":"urig","id":350687,"avatar_url":"https://avatars.githubusercontent.com/u/350687?v=3","gravatar_id":"","url":"https://api.github.com/users/urig","html_url":"https://github.com/urig","followers_url":"https://api.github.com/users/urig/followers","following_url":"https://api.github.com/users/urig/following{/other_user}","gists_url":"https://api.github.com/users/urig/gists{/gist_id}","starred_url":"https://api.github.com/users/urig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urig/subscriptions","organizations_url":"https://api.github.com/users/urig/orgs","repos_url":"https://api.github.com/users/urig/repos","events_url":"https://api.github.com/users/urig/events{/privacy}","received_events_url":"https://api.github.com/users/urig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-20T12:40:35Z","updated_at":"2017-02-20T12:40:35Z","closed_at":null,"body":"Hi and thanks for making this library open source.\r\n\r\nMy question concerns a 3 level hierarchy of objects. For example:\r\n* A `Parent` object has many `Child` objects.\r\n* A `Child` object has many `Grandchild` objects.\r\n\r\nIs it possible to include and filter out records so that we get a `Parent` with all its `Child` objects and all their `Grandchild` objects?\r\n\r\n[MSDN documentation](https://msdn.microsoft.com/en-us/library/jj574232%28v=vs.113%29.aspx?f=255&MSPPError=-2147217396) has an example for this (without filtering of course):\r\n\r\n    using (var context = new BloggingContext()) \r\n    { \r\n        // Load all blogs, all related posts, and all related comments \r\n        var blogs1 = context.Blogs \r\n                         .Include(b => b.Posts.Select(p => p.Comments)) \r\n                         .ToList(); \r\n    }\r\n  \r\nWhat is the equivalent using the `EntityFramework.Include` library?\r\n\r\n"}}
{"actor":{"display_login":"urig"}}