Replies: 3 comments
-
Take a look at ExpressionHelper.cs. Case-insensitive comparison in #400. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Added a simple unit test with a nullable field dapper-repositories/tests/SqlGenerator.Tests/MsSqlGeneratorTests.cs Lines 398 to 408 in c7aea28 |
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.
-
I am trying to get some confidence on the SQL emitted by certain predicates. First is case insensitive comparison. What SQL will be emitted if I do "FindAll( x => x.Name.Equals( name, StringComparison.OrdinalIgnoreCase ) )"? The second case is nullable fields, especially nullable value types, comparison. How would "FindAll( x => x.MaybeNull.HasValue && x.MaybeNull.Value == value )" or "FindAll( x => x.MaybeNull.GetValueOrDefault( myDefault ) == value )" be handled?
Beta Was this translation helpful? Give feedback.
All reactions