Orvar result = session.CreateCriteria(typeof(Student))
.SetProjection(Projections.SqlGroupProjection(
 "min({alias}.BirthDate) as FirstDayOfMonth",
 "datepart(mm, {alias}.BirthDate)",
 new[] { "FirstDayOfMonth" },
new[] { NHibernateUtil.Int32 })

2009/7/8 Fabio Maulo <[email protected]>

> .SetProjection(Projections.SqlGroupProjection("min({alias}.Name) as
> FirstName", "datepart(mm, {alias}.BirthDate)",
> new[] { "FirstName" }, new[] { NHibernateUtil.String }) )
>
> 2009/7/8 Tuna Toksoz <[email protected]>
>
>> This is not impossible to implement, is it?
>>
>> select month(ro.Something) from RisingOrder ro group by month(
>> ro.Something)
>>
>> It is both in group by and in select, so it is a matter of creating an
>> overload for both the constructor and Projections.GroupBy thing.
>>
>> I still don't understand why you said this.
>>
>> Tuna Toksöz
>> Eternal sunshine of the open source mind.
>>
>> http://devlicio.us/blogs/tuna_toksoz
>> http://tunatoksoz.com
>> http://twitter.com/tehlike
>>
>>
>>
>>
>> On Wed, Jul 8, 2009 at 7:28 PM, Fabio Maulo <[email protected]> wrote:
>>
>>> 2009/7/8 Tuna Toksoz <[email protected]>
>>>
>>>> If you file a jira report, I will implement this in 2 days.
>>>
>>>
>>> That is because you have studied it and you know that it
>>> is impossible with the actual implementation, right ?
>>> Or is because create a JIRA ticket is similar to a sport ?
>>>
>>> --
>>> Fabio Maulo
>>>
>>>
>>>
>>
>> >>
>>
>
>
> --
> Fabio Maulo
>



-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
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