samujob wrote:
check that the class that are meant to be lazily loaded are marked lazy=true
Okay, I had to fix my class by added "lazy = true" to my child class's mapping.
So now my child class is marked lazy, my parent class's collection is marked lazy and all of the child class' properties are virtual.
But, it still doesn't work.
When I load a User, I still get the UserDetails collection populated and the rest of the objects below that.
I'm loading a User like this:
Code:
MyObject a = (MyObject) Session.Load(typeof(MyObject), long.Parse("5000"));
Is this wrong? Do I need to load it a special way to enable lazy loading?
--Brian