Re: [nhusers] CriteriaTransformer.TransformToRowCount doesnt work with Aggregate Queries

2010-02-18 Thread Diego Mijelshon
I'm just thinking* it might be easier to do this with HQL Diego *: I didn't try On Wed, Feb 17, 2010 at 15:03, Scott White wrote: > Using version 2.1.0.4 > Since the following code clears the projection before adding the > rowcount as a projection if the target query had Group By clauses >

[nhusers] CriteriaTransformer.TransformToRowCount doesnt work with Aggregate Queries

2010-02-17 Thread Scott White
Using version 2.1.0.4 Since the following code clears the projection before adding the rowcount as a projection if the target query had Group By clauses these will be lost and affect the count returned. The rowcount will be much higher than expected: public static ICriteria Transf