from memory, if the nameless ICollection<BClass> was named 'Bs':

(from a in session.Query<AClass>()
 ...
 select a)
.FetchMany(a => a.Bs).ThenFetch (b => b.D)
.FetchMany(a => a.Bs).ThenFetch (b => b.E);


On 3 Nov., 14:40, birchoff <[email protected]> wrote:
> Given the following model
>
> Class AClass{
>     public virtual ICollection<BClass> {get; set;}
>
> }
>
> Class BClass{
>     public virtual DClass D {get; set;}
>     public virtual EClass E {get; set;}
>
> }
>
> class DClass {...}
>
> class EClass {...}
>
> How would I go about eager fetching the entire graph here using LINQ
> and QueryOver in nh3

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