EF Core fix-up when querying subset of columns
问题 From the documentation: Entity Framework Core will automatically fix-up navigation properties to any other entities that were previously loaded into the context instance. So even if you don't explicitly include the data for a navigation property, the property may still be populated if some or all of the related entities were previously loaded. Entities setup: public class Page{ public Page () { Event = new HashSet<Event>(); } [Key] public int Id { get; set; } public string Title { get; set; }