c# - Implement SQL unicode search in Entity Framework using contain -
I'm trying to find my user
with this query:
dbcontext.tbluserinfo .where (i = & gt; i.name.contain ("مهرپو");
I have a record in my database with this value , But the query 'results will return.
So I tried to type my query in SQL Server like this:
select from tbluserinfo * where'% مهرپو% 'Names like this
No results again!
Lake When I changed it:
from * tbluserinfo where name 'n'% مهرپو% '
the result is returned.
So my question is how do I use my searchvalue
EF
before N
, and the second question is that the value of this value I have this problem for مهرپو
and it works fine for other users - why?
Comments
Post a Comment