How to include only selected properties on related entities
问题 I can include only related entities. using (var context = new BloggingContext()) { // Load all blogs, all related posts var blogs1 = context.Blogs .Include(b => b.Posts) .ToList(); } However, I don't need entire BlogPost entity. I'm interested only in particular properties, e.g: using (var context = new BloggingContext()) { // Load all blogs, all and titles of related posts var blogs2 = context.Blogs .Include(b => b.Posts.Select(p => p.Title) //throws runtime exeption .ToList(); foreach(var