InterviewSolution
| 1. |
How Do I Store Data In Httpsession? |
|
Answer» You might already know that you can not store entity in HttpSession in an OpenSessionPerView mode which is what NHibernate.Burrow is using most of the cases. INSTEAD, you can store entity id in session and load the entity with Id EVERY time you use it. Thanks to NHibernate's CACHE, this won't BRING any performance issue to your system. You might already know that you can not store entity in HttpSession in an OpenSessionPerView mode which is what NHibernate.Burrow is using most of the cases. Instead, you can store entity id in session and load the entity with Id every time you use it. Thanks to NHibernate's cache, this won't bring any performance issue to your system. |
|