nhibernate - Is this the right way of using ThenFetch() to load multiple collections? -


I am attempting to load all the collections impatiently, by using. I am thinking that is it the right way to use FET () again?

Plural names are property collections, others are just one object.

  IQueryable & lt; T & gt; Milestone Instances = DB.Fund & lt; T, IQueryable & lt; T & gt; & Gt; (Db = & gt; Mile to DB in mi.RunDate == run date select miles) .Fetch (mi = & gt; mi.Milestone) .French (M => Primary Primary Owners). Ft (mi = & m; mi milton). Then Fat (M => M.Secondary Owner). Fitch (mi => M. Melstown). Then Fate (M => M. Predders) Fetch (mi = & gt; mi.Milestone). Then fate (m => m.function) .Fetch (mi => mi.Milestone). Then FetchMany (m => m.Jobs) .ThenFetch (j = & gt; J.Source);  

I thought about asking it but unfortunately I have been denied access to Google Groups. I know here, so maybe the people of the NHibernate team will put some light on this? Thank you

Obviously, in this case, using any of the ThenFetch The right way "is not the case. Your example works well but the output of SQL contains many in milestones which is not correct. Instead of using

IQueryOver IQueryable you get :

  received (P = & gt; PB) // If there is no B collection ... or get (P => PB [0] .CC) // If B is a collection ... or get (P => PBF (). C) // If B is an IEnumerable  

then in your case it will be:

  query // session = .claimer  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -