Lazy loading in nhibernate works by creating a dynamic proxy of your class.
This dynamic proxy, is a class that inherits from your real class and
override every members with some code.. so the first acces to any property
will issue the select to the db.
In order to be "proxyable" you must declare your properties as "virtual".

public virtual string my...

2010/11/9 Michael Delva <[email protected]>

> > - your classes are not proxyable and for that reason you can see the
> > lazy="false"
>
> Why are'nt they proxyable?

-- 
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.

Reply via email to