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
Just add .ToLower() from upper
.ToLower()
upper
using (var db = this.DataContext) { return db.Counties .Where(x => x .CountyName.ToLower() .Contains(upper.ToLower())).ToList(); }