Woah, Nellie.NET!

From my simple mind to… mine…

NHibernate Session Management in Windows Forms

with one comment

Check out this post by Ayende.

As usual, it’s a very good post, but the most interesting part to me was near the end. He talks about managing session in Windows Forms desktop applications.

Typically with ASP.NET, we’d use a session-per-request model when managing the NHibernate Session. You can’t do that with a desktop application, since desktop applications do not work on a “per request” basis (I suppose you could code it that way, but why?). Ayende mentions a book and gives some examples from his experience. He really knows his stuff.

I have one desktop application experience utilizing NHibernate. I tried managing session in the application lifecycle from beginning to end. Looking back, that was a mistake and I wish that I had Ayende’s suggestion to manage session at a per-conversation level. 😦

Advertisements

Written by Nelson

February 4, 2007 at 5:28 pm

Posted in .NET, NHibernate

One Response

Subscribe to comments with RSS.

  1. What issues did you run into while trying to manage the session in the application lifecycle from beginning to end? Is the memory usage the biggest concern?

    Thanks.

    Kiron Roy

    August 19, 2008 at 2:00 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: