Advertisement

02.07.2008 at 01:03PM PST, ID: 23145943
[x]
Attachment Details

Hibernate Open Session in View in .NET

Asked by znotte in .Net Editors & IDEs, Microsoft Visual C#.Net, .NET Framework 2.0

Tags: c# .net, hibernate

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 AnicheStart Free Trial
[+][-]02.11.2008 at 04:48AM PST, ID: 20865802

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Microsoft Visual C#.Net, .NET Framework 2.0
Tags: c# .net, hibernate
Sign Up Now!
Solution Provided By: znotte
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628