I use EF6 and Sql Server and Contains
is mapped to LIKE '%@p0%'
which is case insensitive in my case. So in my case:
db.Counties.Where(x => x.CountyName.Contains(term)).ToList();
works as needed. More info in Sjoerd answer.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…