Hello,
now for every method to read or write in database I create new session
this way
ISessionFactory sessionFactory =
config.BuildSessionFactory();
ISession session = sessionFactory.OpenSession();
What about performance? I read about solution while session is opened
in BeginRequest and closed in EndRequest. Is it much more quickly?
What is the best practice of using ISession?
Where and how have I close connection?
Now every method looks like
using (ISession session = GetSession())
{
}
Thanks,
Alexander.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---