1,829 votes31 comments · Entity Framework Core Feature Suggestions » runtime · Flag idea as inappropriate… · Admin →Matthieu MEZIL supported this idea ·
EF6 added initial support for interception, which exposes events for query interception. Currently only access to store DbExpression trees and DbCommand are available, but interception at different levels should become possible in the future.
We already can do something like this.
For example, I did it to add Table Valued Functions for example. (http://msmvps.com/blogs/matthieu/archive/2010/07/01/how-to-include-recursion-table-valued-functions-in-linq-to-entities-queries-with-ef4-v2.aspx). However, I think that it should be great to be able to use the EF materializer.
8 votes3 comments · Entity Framework Core Feature Suggestions » runtime · Flag idea as inappropriate… · Admin →
Why do you need it?
Issue tracking this feature: https://github.com/aspnet/EntityFramework/issues/1833.
You can do it with EF4 even if it is less simple than the method you propose.
I wrote a post on it http://msmvps.com/blogs/matthieu/archive/2009/10/07/ef-include-with-where-clause.aspx