There is something regarding NHibernate 1.2 (webapp C# aspnet 3.5) and lazy loading that I don't understand and I can't find some clear answer: does many-to-one support lazy loading?
Let's say we have some Person
object and a Squeletton
object. Both objects are big with many properties. A Person
has one and only one Squeletton
: myPerson.Squelleton.
Mapping of Person
: <many-to-one class='Squeletton' name='Squeletton' column='id_squeletton' lazy='proxy' />
I don't want the Squeletton
property to be loaded every time Person
is. Using NHProfiler I can see "select" requests for Squeletton
even if I don't access the property.
What is wrong: mapping? bad use of many-to-one? NHibernate version? How can I have some lazy loading on Squeletton property?
Thanks in advance.