You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhanced Query Builder Documentation and Functionality
This PR includes the addition of a new method documentation for 'AddCompositeMap' to the 'IQueryBuilder' interface. It also includes the introduction of 'AddNestedMapper' methods to the 'IQueryBuilder' interface. These new methods allow reusing nested object mappings, merge nested mappings directly without a prefix, merge nested mappings with a custom prefix, and support custom mapper classes for nested object handling. The 'QueryBuilder' class has been updated to include the implementations of these new nested mapping functionalities.
Updates to Query Builder Documentation
The 'queryBuilder.md' documentation has been updated to include detailed descriptions and usage examples for the new 'AddNestedMapper' and 'AddCompositeMap'. This enhances users' understanding of the functionality of these new methods and how best to utilize them.
New Test Class for Query Builder
A new test class 'QueryBuilderNestedMapperTests' has been added to validate the nested mapping functionality in the 'QueryBuilder' class.
Implementation of Multiple Test Cases
Multiple test cases have been implemented using the Xunit framework to cover multiple scenarios like adding nested mappers with or without prefixes, using custom mapper classes for nested mappings, lazy initialization of mappers, composite mappings for multiple nested mappers, correct behaviors for conditions, ordering, paging, and count retrieval. The tests also cover the override behavior of existing mappings when adding nested mappers and the interactions with compiled evaluators for building query results.
Helper Classes and Entities for Tests
Several helper classes and entities like 'User', 'Address', 'Company', and 'Contact' have been included to facilitate the execution of the tests.
alirezanet
changed the title
feat: add AddNestedMapper to QueryBuilder
feat: Add support AddNestedMapper to QueryBuilder
Mar 7, 2026
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
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.
Type of change
Checklist