title: Imported function in Entity Framework Where clause?
body: <p>Is it possible to use a function import in a where clause in entity framework? I have tried the following, but I get a rather cryptic exception to which I cannot find any information about:</p>
  
  <pre><code>var q = MyContext.MyEntities.Where("MyContext.MyFunction(it.ID)")
  </code></pre>
  
  <p>(The function is set to return a Boolean)</p>
  
  <p>System.Data.EntitySqlException: 'MyContext.MyFunction' cannot be resolved into a valid type constructor or function., near WHERE predicate, line 6, column 21..</p>
  
  <p>Regards</p>
  
  <p>Lee</p>