我的Web應用程序中的母版頁執行身份驗證並使用Get
加載用戶實體。負載與獲取在Nhibernate
在此之後,無論usercontrols或任何其他類需要用戶對象,我都會執行Load
。
正常情況下nhibernate is supposed to load the object from cache or return the persistent loaded object每當Load
被調用。但這不是我的web應用程序顯示的行爲。 NHprof每次調用Load時都會顯示sql。如何驗證Load
的正確行爲?我使用S#arp架構框架。