c# - Entity Framework core - Contains is case sensitive or case insensitive? -


"contains" in entity framework core should equivalent sql %like% operator. therefore "contains" should case insensitive case sensitive! (at least in postgres????)

the following outputs result when correct casing keyword used.

context.counties.where(x => x.name.contains(keyword)).tolist(); 

what doing wrong?

iqueryable.where executed in database, case insensitive.

ienumerable.where uses c# string.contains, case sensitive.

read answer: returning ienumerable vs. iqueryable


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -