Re: Linq project added to core

"Ayende Rahien" <[email protected]> Thu, 14 Aug 2008 17:44:32 +0300
Newsgroups gmane.comp.windows.dotnet.nhibernate.devel
Message-ID <[email protected]>
NHibernate Linq against 2.0 will not work and there are no plans for it in
2.0
The plans calls for it in 2.1

On Thu, Aug 14, 2008 at 5:34 PM, Jon Stelly <[email protected]> wrote:

> I had a question related to NHibernate.Linq.  I'd like to use it against
> the 2.0 branch, but it seems like it's broken there.  The EntityOrClassName
> property was removed from DetachableQuery in the NHibernate 2.0 branch a
> while ago but the Linq project on NHContrib references that property in
> several methods.
>
> It looks like the NHibernate.Linq project in the trunk isn't working at
> this point (the code to process the AST has been removed and looks like it's
> being rewritten or moved over in chunks).  I know that Linq project has
> moved around a bit, from Ayende and Rhino to NHContrib, now to NHCore.  Are
> there plans to get NHibernate.Linq working against NHibernate 2.0 when 2.0
> is released?  If someone (Chad, whoever) could use some help with that or
> anything NHibernate.Linq related, I'd be happy to help out where I can.  I'm
> working on a project that will use NHibernate 2.0 and would like to use
> NHibernate.Linq if possible.
>
> Thanks,
> Jon
>
>
> On Wed, Aug 13, 2008 at 9:42 AM, Ayende Rahien <[email protected]> wrote:
>
>> 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
>>
>>
>
> -------------------------------------------------------------------------
> 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