Replies: 1 comment
-
From memory logic operators in predicates are mapped to the related sql commands (for example |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There doesn't seem to be a way to do case-insensitive text comparison in YesSQL - can someone shed some light?
So for example all these will throw the error "Operation is not valid due to the current state of the object.":
c.DisplayText.Contains(name, StringComparison.InvariantCultureIgnoreCase)
or
c.DisplayText.ToLower() == name.ToLower()
or
c.DisplayText.Equals(name, StringComparison.InvariantCultureIgnoreCase)
Changing the query back to this resolves the issue:
c.DisplayText == name
Beta Was this translation helpful? Give feedback.
All reactions