c# - Implement SQL unicode search in Entity Framework using contain -


I'm trying to find my user with this query:

< Pre> 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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -