How to write C# case insensitive LIKE statement for SQLIte using ICU extension? -


sqlite have limitation on using non-ascii symbols. icu extension solves problem. how write code in c# creating following case insensitive statement:

select * persons surname '%Пупкин%' 

p.s. if there solution using in c# statement non-ascii symbols please provide it.

c# code

var lst = (from p in persons             p.surname.indexof(searchtext, stringcomparison.invariantcultureignorecase) >= 0             select p).tolist() 

invariantcultureignorecase 1 of options of string.indexof methods. might achieve c#


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -