what version are you using? (looks like the old one and not v3?)
what is you're actual scenario (with objects and associations that make
sense)?

On Thu, Sep 16, 2010 at 10:09 PM, Scott <[email protected]> wrote:

> I'm new to Linq and one thing I'm not understanding is how to form
> queries based on nhibernate objects that have collections and I need
> to get down the tree on them.
>
>
> Obj1.Bags.AnyObjInBag.MoreBags.AnyObjInBag
>
> Maybe I'm doing it completely wrong but the only thing that some what
> works on NH collections is if I do a cast on it like:
>
> from O1 in NHObj.O1Bag.Cast<O1Type>()
> join O2 in NHSession.Linq<O2>() on O1 equals O2.O1Reference
> select O2
>
>
> That works for a collection to a single parameter but what about the
> intersection of 2 collections?
>
> In TSQL I would have just had a bunch of inner joins until I got
> everything I wanted.
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

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