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
Post a Comment