feat: add IsNull and IsNotNull unary condition operators - #2
Open
AmirTahan80 wants to merge 2 commits into
Open
AmirTahan80 wants to merge 2 commits into
AmirTahan80 wants to merge 2 commits into
Conversation
- Add ConditionOperator.IsNull (11) and ConditionOperator.IsNotNull (12) - Update ConditionSemantics to treat IsNull and IsNotNull as executable unary operators without requiring a value parameter - Implement null-safe evaluation in InMemoryQueryEngine - Add Dapper SqlQueryCompiler support generating IS NULL and IS NOT NULL predicates - Add EF Core ExpressionCompiler translation using direct null comparisons and handling negations - Add comprehensive conformance tests verifying IS NULL / IS NOT NULL behavior across providers - Add sample requests in Requests.http for In-Memory provider
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds first-class unary null-checking operators (IsNull and IsNotNull) across the entire QueryForge ecosystem.
Callers can now express IS NULL and IS NOT NULL conditions explicitly using dedicated operators without having to pass
ull as a value argument to Equals / NotEquals.
Changes
Core (PepperX.QueryForge):
Dapper (PepperX.QueryForge.Dapper):
EF Core (PepperX.QueryForge.EFCore):
Conformance Tests (PepperX.QueryForge.Conformance):
Sample API (PepperX.QueryForge.Sample.WebApi):
Verification
All 195 unit and integration tests passing (dotnet test).