Replies: 1 comment 2 replies
-
|
It looks to me you are reinventing QueryOver.
But I have not used any of them much, so, I cannot tell why would QueryOver not match your goals. |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve been working on an open-source tool called NHQueryBuilder, designed specifically for NHibernate developers who build complex criteria queries and want a more fluent, strongly-typed, discoverable API.
Instead of chaining a bunch of CreateAlias, Restrictions., Projections., etc., you can build queries with a LINQ-style fluent syntax — while still generating classic NHibernate ICriteria under the hood.
Why I built it
NHibernate is still heavily used in many enterprise and legacy systems, but writing advanced queries with Criteria API gets verbose quickly. So NHQueryBuilder tries to make it:
Old way:
NHQueryBuilder way:
GitHub
Source code, full README, examples, and documentation:
https://github.com/pdesai84/NHQueryBuilder
NuGet
Package is available here:
https://www.nuget.org/packages/NHQueryBuilder
Feedback
I’d love your feedback!
Since people have begun using it, I’d really appreciate feedback from the community:
If you try it out and have ideas, please share them in GitHub Discussions:
https://github.com/pdesai84/NHQueryBuilder/discussions
Or report an issue here:
https://github.com/pdesai84/NHQueryBuilder/issues
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions