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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -