Re: Linq project added to core

"Ayende Rahien" <[email protected]> Wed, 13 Aug 2008 17:42:46 +0300
Newsgroups gmane.comp.windows.dotnet.nhibernate.devel
Message-ID <[email protected]>
We don't, same as we don't have a different implementation of SELECT for
each dialect, but we do have this option.



On Wed, Aug 13, 2008 at 5:36 PM, Fabio Maulo <[email protected]> wrote:

> 2008/8/13 Ayende Rahien <[email protected]>
>
>> Having an expression tree for this, as well as a translator for this would
>> be much easier.
>> As a simple example, we may have Dialect.GetExpressionTreeTranslator(),
>> where the default would rely on what we have right now, but we can override
>> it in specific dialects to deal with things in a higher level form
>>
>
> mmmm... why we need a ExpressionTreeTranslator for each dialect ?
>
> BTW it is early to talk about it. Before it we need the new tree and a good
> state of the new translator.
> After that we can start to think how the 2 MS Dialect can change something.
> Before it I would like to see a translation of
> from Animal
> select cast(a.BodyWeight as Double) from Animal a group by
> cast(a.BodyWeight as Double) having cast(a.BodyWeight as Double)>0
> select lower(an.Description) from Animal an group by lower(an.Description)
> having lower(an.Description)='abcdef'
> select min(a.BodyWeight) from Animal a having min(a.BodyWeight)>0
> from eg.Cat as cat join cat.mate as mate left join cat.kittens as kitten
> select distinct new SummaryItem(a.Description, sum(BodyWeight)) from Animal
> a
> from Animal a where substring(a.Description, 2, ?) = 'bcd'
>
> This is HQL (our native OO query lenguage) but something to do the same
> with LINQ (MS OO query language).
>
> --
> Fabio Maulo
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Nhibernate-development mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nhibernate-development
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Nhibernate-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nhibernate-development