If I want to call the SQL Server function Contains(field,value)
using Linq, how can I accomplish this?
Doing something like:
var result = context.Documents.Where(d => d.SomeField.Contains(param)).ToList();
Does not use the Contains
function in the generated SQL query. The field is a textfield with full text search enabled.
I know there should be some SQL Server string functions already mapped somewhere in the framework. Is Contains
one of those and where can I find them?