So I did a little research with a few examples and it seems like the ThenFetch method is dependent on the Child Association being mapped to a class with an ID instead of a component class. Is this a hard limitation or is this a gap/bug in the implementation?
On Nov 4, 5:48 am, Stefan Wenig <[email protected]> wrote: > 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.
