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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.