Hibernate Open Session in View in .NET

Hi folks,

I am using NHibernate which is the Hibernate for .NET. When hibernate returns a collection it needs the session opened while you navigate inside it. If you close the session you will get lazyiniciatiliazion exception or something like that.

In Java, you can implement a Filter , open the Session, process, and then close the session. It is known as OPEN SESSION IN VIEW.

My doubt is: how can I implement the same in the .NET framework? Is there any filter I can implement? Or how can I sort this problem out?

Thanks in advance,
Mauricio Aniche
Who is Participating?
znotteConnect With a Mentor Author Commented:
I found the solution using the MindLib Project. Google it! :)
All Courses

From novice to tech pro — start learning today.