NHibernate Query Generator 1.9 is out!
time to read 1 min | 127 words
Here are the goodies:
- Breaking change: I modified the way that NHQG accepts parameters, I am not using a non-hacky approach for this, but this means that you would need to modify any scripts that you have. Instead of positional parameters, you have to specify what the name of the parameters are, I think that it would be easier this way.
- Added AddOrder(), SetProjection() to QueryBuilder - patch from Ramon Kania
- Support for nested components - patch from Craig Neuwirt
- Stateless root for the query in case you want to really build it from scratch - that one is actually from me
- Added a way to override the "Query" namespace, using /ns:MyQuery syntax. - requested by Marcello Palmitessa
As usual, you can get it here.
Comments
HI
Do you mind to add an small tutorial to use this tool please ?
This is a terrific release as nested components is pretty key. Are there any plans to include the ability to drill into collections: Where.Blog.Posts.Contains(blah)?
If there are no plans, let us know where the source is so we can submit a patch.
John, this is definitely on my radar, but you can take the source is from:
https://rhino-tools.svn.sourceforge.net/svnroot/rhino-tools/trunk/NHibernate.Query.Generator
I will gladly accept a patch for this.
Another thing I've found is that the base namespace provided by /BaseNamespace isn't reflected in QueryBuilder.cs. It defaults to "Query".
John, good catch, that is because the QB is not generated, it is actually a resource, I will fix that.
John,
that one is fixed.
Comment preview