Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Anyone know of a work around for using Where Contains so it ignores case?
E.g I have a field with a value of Alpha.
Contains finds "Alpha" but not "alpha".
Thanks
Pete
Do comparisons on normalised values, so use string.ToUpperInvariant() on the input and comparatives.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Razor Where Contains Case sensitive?
Anyone know of a work around for using Where Contains so it ignores case?
E.g I have a field with a value of Alpha.
Contains finds "Alpha" but not "alpha".
Thanks
Pete
Do comparisons on normalised values, so use string.ToUpperInvariant() on the input and comparatives.
is working on a reply...