{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4124","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4124/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4124/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4124/events","html_url":"https://github.com/aspnet/EntityFramework/issues/4124","id":122831028,"number":4124,"title":"How to include a property of a subclass","user":{"login":"mart1nk0","id":16268894,"avatar_url":"https://avatars.githubusercontent.com/u/16268894?v=3","gravatar_id":"","url":"https://api.github.com/users/mart1nk0","html_url":"https://github.com/mart1nk0","followers_url":"https://api.github.com/users/mart1nk0/followers","following_url":"https://api.github.com/users/mart1nk0/following{/other_user}","gists_url":"https://api.github.com/users/mart1nk0/gists{/gist_id}","starred_url":"https://api.github.com/users/mart1nk0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mart1nk0/subscriptions","organizations_url":"https://api.github.com/users/mart1nk0/orgs","repos_url":"https://api.github.com/users/mart1nk0/repos","events_url":"https://api.github.com/users/mart1nk0/events{/privacy}","received_events_url":"https://api.github.com/users/mart1nk0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T21:55:25Z","updated_at":"2015-12-17T21:55:25Z","closed_at":null,"body":"I have the following model:\r\n\r\n    class Image\r\n    {\r\n        public int Id { get; set; }\r\n        public string Url { get; set; }\r\n        public int Width { get; set; }\r\n        public int Height { get; set; }\r\n    }\r\n\r\n    class ImagePost : BasePost\r\n    {\r\n        public List<Image> Images { get; set; }\r\n    }\r\n\r\n    class BasePost\r\n    {\r\n        public int Id { get; set; }\r\n        public string Heading { get; set; }\r\n        public string Text { get; set; }\r\n    }\r\n\r\n    class BloggingContext : DbContext\r\n    {\r\n        public DbSet<Image> Igames { get; set; }\r\n\r\n        public DbSet<BasePost> Posts { get; set; }\r\n\r\n        public DbSet<ImagePost> ImagePosts { get; set; }\r\n\r\n        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)\r\n        {\r\n            optionsBuilder.UseSqlite(\"Filename=blogs.db\");\r\n        }\r\n    }\r\n\r\nHow can I call `Include` on `db.Posts` so that every `ImagePost` gets its `Images` property included?"}}