Hi all

We use ISession like this:

Using(ISession ses = GetNewSession())
{
     //Do some work
}

Should we instead use:

Using(ISession ses = GetNewSession())
{
     //Do some work
    ses.Close();
}

To guarantee that the session is closed correctly.
Or the close handled by the implementation of Dispose in ISession
itself?

Kind regards
Garrett
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to