I want a solution to this problem that does not involve ToUpper or ToLower, as I use in the code below;
var upper = term.ToUpper(); using (var db = this.Data
I use EF6 and Sql Server and Contains is mapped to LIKE '%@p0%' which is case insensitive in my case. So in my case:
Contains
LIKE '%@p0%'
db.Counties.Where(x => x.CountyName.Contains(term)).ToList();
works as needed. More info in Sjoerd answer.