The master page in my web application does authentication and loads up the user entity using a Get
.
After this whenever the user object is needed by the usercontrols or any other class I do a Load
.
Normally nhibernate is supposed to load the object from cache or return the persistent loaded object whenever Load
of called. But this is not the behavior shown by my web application. NHprof always shows the sql whenever Load is called. How do I verify the correct behavior of Load
?
I use the S#arp architecture framework.