Select specific properties from include ones in entity framework core
问题 I use Entity Framework Core 2.0 and have this 2 classes: News public class News { public int Id { get; set; } public string Title{ get; set; } public string Text { get; set; } public DateTime ReleaseDate{ get; set; } public int AuthorID{ get; set; } public Author Author{ get; set; } } Author public class Author { public Author () { News = new List<News>(); } public int Id { get; set; } public string Username{ get; set; } public string Firstname{ get; set; } public string Lastname{ get; set; }