I am using a simple Sum() projection and I can't get it to work.
I build my criteria in 2 steps.
I have a Sales Property in the "SalesAndQuota" class that have about 10 properties. I am trying to test with 1 field first then add the rest.
here's the simple code
ProjectionList projectionList = Projections.ProjectionList();
I then call the SetProjections method
if( projectionList != null )
And this doesn't work.
Here's my error message.
The value "1008097.37" is not of type "SalesAndQuota" and cannot be used in this generic collection.
Parameter name: value
It appears the code is trying to set sum to actual class name? AmI doing this completely wrong, because Sales is a field in the SalesAndQuota class.
View Complete Post