I will try that. Thanks.
But coming back to my initial problem.
Even if I try with an explicit field, I have the following problem:
This is the code that I wrote:
predicateExpression.Add(
new FieldLikePredicate(
CustomerFields.CustomerName.SetExpression(
new DbFunctionCall("COLLATE SQL_Latin1_General_CP1_CI_AI",new object[]
{CustomerFields.CustomerName}))
, null, value));
But the following select is generated:
SELECT *
FROM Customer
WHERE ( ( (COLLATE SQL_Latin1_General_CP1_CI_AI CustomerName LIKE '%rene%')))
instead of
SELECT *
FROM Customer
WHERE CustomerName like '%rene%' COLLATE SQL_Latin1_General_CP1_CI_AI
Did I write something wrong?
Thanks