String.Equals() not working as intended

前端 未结 6 745
再見小時候
再見小時候 2020-11-28 10:49

I am using LINQ to search through one of my Entity Framework tables and find a \"group\" based on the name. The name is a string and appears to be Unicode (says it is in the

6条回答
  •  广开言路
    2020-11-28 11:36

    Use the String.Compare() as it can be translated to Sql.

    Here are some examples of string matching in Linq, with the Sql translation as well.

提交回复
热议问题