The Entity Framework is incompatible with the
operator. If you attempt to utilize it, you get the following exception:
"The LINQ expression node type 'Invoke' is not supported in LINQ to Entities.
Has anybody come up with a solution to this lack of functionality? In an Entity Framework environment, I want to utilize the PredicateBuilder described here.
@marxidad Edit 1 Although I enjoy your idea, I'm not really sure how it works. Can you provide any more guidance on the suggested solution?
@marxidad Edit 2 I appreciate the explanation.
Only the canonical functions of the Entity framework are supported inside the Entity Command trees that the Entity framework turns LINQ statements into. To implement anything similar to PredicateBuilder, you would need to employ command trees with canonical functions.