Linq for NHibernate and fetch mode of eager loading?

Just use it more then once. IList GetDataFromDatabase() { var query = session.Linq(); query. Expand("Property1"); query.

Expand("Property2"); return query.ToList(); }.

5 or query. Expand("Property1,Property2"); – Sprintstar Aug 20 '09 at 9:53 2 Is that an expansion method? Can't find it in NLinq v2.0.50727.

– Arnis L. Oct 6 '09 at 7:40 I mean, version 1.0.0.0 – Arnis L. Oct 6 '09 at 7:42 1 It is there, on NLinq.

Query – liammclennan Jul 15 '10 at 3:22.

The new Linq provider does it a little differently: var customers = session.Query(). Fetch(c => c. Orders).ToList(); More here: mikehadlow.blogspot.com/2010/08/nhiberna....

As far as I can see, this is not equivalent: SetFetchMode hydrates an objects tree and the Expand method retrieves a cartesian product.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions