Open roji opened 4 years ago
We could make client-side evaluation for compiled queries work by having ParameterExtractor register evaluations as lambdas to be invoked each time a query is executed.
That is what true funcletizer is.
I guess I finally figured it out then :)
This would also enable using properties over DbContext inside query.
When executing normal queries, ParameterExtractor is invoked every time, and performs evaluations on parameters. However, with compiled queries the ParameterExtractor is invoked only once, so these evaluations do not take place. This raises some questions:
Originally discussed in https://github.com/aspnet/EntityFrameworkCore/pull/19189#discussion_r354852354