I need a little piece of magic. I believe that what I am trying to do makes sense, but if I did not see a problem with the plan, the reasons why this would be very welcome.
I have an expression
Expression<Func<Entity, bool>>
and I want to make / convert or even create a completely new expression:
Expression<Func<Derived, bool>>
This is used as an EF filter request, passed as an argument to the repository method. The repository returns an enumerable Entity, so I could use covariance quite easily, but I want to do some post-processing of the request in the received state before returning it.
It seems to me that EF should do this on its own, but I would like to be able to run my query so that the result type is derived, not Entity.
Thanks for the help.
Mjm
source share