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,