<p>The Entity Framework does not support the <code>Expression.Invoke</code> operator.  You receive the following exception when trying to use it:</p>

<blockquote>
  <p>"The LINQ expression node type 'Invoke' is not supported in LINQ to Entities.</p>
</blockquote>

<p>Has anyone got a workaround for this missing functionality? I would like to use the PredicateBuilder detailed <a href="http://www.albahari.com/nutshell/predicatebuilder.html" rel="noreferrer">here</a> in an Entity Framework context.</p>

<p><strong>Edit 1</strong> @marxidad - I like your suggestion, however it does baffle me somewhat. Can you give some further advice on your proposed solution?</p>

<p><strong>Edit 2</strong> @marxidad - Thanks for the clarification.</p>

[{'answer_id': 13967, 'author': 'Mark Cidade', 'author_id': 1659, 'author_profile': 'https://Stackoverflow.com/users/1659', 'pm_score': 0, 'selected': False, 'text': "<p>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.</p>\n"}, {'answer_id': 718366, 'author': 'Joe Albahari', 'author_id': 46223, 'author_profile': 'https://Stackoverflow.com/users/46223', 'pm_score': 6, 'selected': True, 'text': '<p><a href="http://www.albahari.com/nutshell/predicatebuilder.aspx" rel="noreferrer">PredicateBuilder</a> and <a href="http://www.albahari.com/nutshell/linqkit.aspx" rel="noreferrer">LINQKit</a> now support Entity Framework.</p>\n\n<p>Sorry, guys, for not doing this earlier!</p>\n'}]
['https://Stackoverflow.com/questions/10524', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/708/']