114 votes3 comments · [Closed] Entity Framework Core Feature Suggestions · Flag idea as inappropriate… · Admin →Piers shared this idea ·
865 votes25 comments · [Closed] Entity Framework Core Feature Suggestions · Flag idea as inappropriate… · Admin →
Issue tracking this feature: https://github.com/aspnet/EntityFramework/issues/1833.Piers commented
Dan, the applying of filters mentioned in that post is when explicitly loading entities, not when Eagerly loading entities which is what Include would give.
Moderator... this is the same suggestion as http://data.uservoice.com/forums/72025-ado-net-entity-framework-ef-feature-suggestions/suggestions/1015345-allow-filtering-for-include-extension-method?ref=title so the scores should be added together!Piers supported this idea ·Piers commented
Matthieu, your solution works if you know what you want to include at compile time... however the great thing about Include() is that it can be added to a query dynamically (e.g. within an if statement). Using a Projection means you lose that flexibility... doubly annoying as the introduction of a Projection also strips off any existing Include()s on the main query!!!