Correct. For some examples of desktop app architectures with NHibernate, check Effectus and uNhAddIns. http://github.com/ayende/Effectus <http://github.com/ayende/Effectus>http://code.google.com/p/unhaddins/
Diego On Thu, May 6, 2010 at 14:30, mynkow <[email protected]> wrote: > So, if I understand correctly, I do not need to manually remove the > connection to the DB. Correct? > > On May 6, 8:25 pm, Oskar Berggren <[email protected]> wrote: > > Normally the ISession will automatically release the database > > connection immediately after you commit or rollback the current > > transaction. The connection should then go back to the connection > > pool. The ISession will also automatically grab a connection from the > > pool when needed. > > > > /Oskar > > > > 2010/5/6 mynkow <[email protected]>: > > > > > > > > > Hi > > > > > I have a winform application. When user opens a new window: > > > 1) I create a brand new session > > > 2) Initialize all data from DB. > > > 3) disconnect from the session because the user may stay on that > > > windows for hours. > > > 4) When a certain operation occurs like update or save I reconnect to > > > the session. > > > 5) when user closes the window the session is disposed. > > > > > The problem is that I noticed in NHProf that each time I reconnect to > > > the session a new one is created. Is this normal? Am I missing > > > something? > > > > > Thank you! > > > > > -- > > > 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]<nhusers%[email protected]> > . > > > For more options, visit this group athttp:// > groups.google.com/group/nhusers?hl=en. > > > > -- > > 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]<nhusers%[email protected]> > . > > For more options, visit this group athttp:// > groups.google.com/group/nhusers?hl=en. > > -- > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- 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.
