The Entity Framework does not support the Expression.Invoke
operator. You receive the following exception when trying to use it:
\"The L
The Entity framework converts LINQ expressions into Entity Command trees and within that only its canonical functions are supported. You'd have to use the command trees with canonical functions to do something like PredicateBuilder.
PredicateBuilder and LINQKit now support Entity Framework.
Sorry, guys, for not doing this earlier!