Like is available via passing a string through ESQL… but not as an actual operator or method anywhere so far. I’ve found numerous articles suggesting work-arounds, the most interesting of which I get an exception on:
NotSupportedException: The specified
method ‘Boolean Like(System.String,
System.String)’ on the type
‘EF4.Extensions’ cannot be translated
into a LINQ to Entities store
expression.
Anything here yet? EF 4.1 is out… any news or clean options?
In EF 4.x, string.StartsWith, string.EndsWith, and string.Contains are translated to SQL LIKE. (Although neither support multiple wildcards…)