Suppose I have a model like this:

Payment
 - Id
 - Date (yyyy-mm-dd)
 - Amount

I want to perform an HQL aggregate query and get the following DTO

PeriodicalPayment
  - Period ( yyyymm eg: 200908 = year August 2009)
  - PreviousPaidAmount (payment amount aggregated from Payment table
where period < 200908)
  - CurrentPaid (payment amount aggregated from Payment table where
period = 200908)

I feel like I need to have a function to convert from yyyy-mm-dd to
yyyymm does NHibernate had any DateTime function which I can use?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to