Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow comparison with nullable parameter #618

Merged
merged 1 commit into from
Aug 24, 2017
Merged

allow comparison with nullable parameter #618

merged 1 commit into from
Aug 24, 2017

Conversation

kicsiede
Copy link
Contributor

allow queries like

var nullableInt = default(int?);
connection
.Table()
.Where(x => x.Int < nullableInt);

which is equivalent to
connection
.Query("SELECT * FROM [Test] WHERE [Int] < ?", nullableInt);

allow queries like

var nullableInt = default(int?);
connection
  .Table<Test>()
  .Where(x => x.Int < nullableInt);

which is equivalent to
connection
  .Query<Test>("SELECT * FROM [Test] WHERE [Int] < ?", nullableInt);
@praeclarum
Copy link
Owner

Fantastic. Thank you!

In the future, please add your example as a unit test. I like to have a test for each feature so we can prevent regressions.

@praeclarum praeclarum merged commit 5603ee0 into praeclarum:master Aug 24, 2017
github-actions bot pushed a commit to Reddevildragg-UPM-Forks/sqlite-net that referenced this pull request Nov 17, 2020
allow comparison with nullable parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants