Does Entity Framework currently support custom functions in the Where clause?

Posted by André Pena on Stack Overflow See other posts from Stack Overflow or by André Pena
Published on 2012-10-15T21:34:11Z Indexed on 2012/10/15 21:36 UTC
Read the original article Hit count: 156

Filed under:
|

Entity Framework currently supports table valued functions and custom functions defined in the SSDL, but I can't find any example of it being used as a criteria, in the where clause.

Example:

var query = this.db.People; query = query.Where(p => FullText.ContainsInName(p.Id, "George"));

In this example, ContainsInName is my custom function that I want to be executed in the where clause of the query.

Is it supported?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about entity-framework