Featured post
c# - NHibernate Unit Of Work - Multiple Sessions (WinForms) -
i struggling learning curve nhibernate.
we porting our c# winforms application use nhibernate , employing unit of work (unitofwork) detailed gabriel schenker.
http://nhforge.org/wikis/patternsandpractices/nhibernate-and-the-unit-of-work-pattern.aspx
we wish employ unitofwork on "conversational" basis. example when user opens form open unitofwork session , keep open until form closed. forms easier way define business conversation, may change depending upon implementation example, please use form opening , closing example.
the problem exists when have scenario of form opening on top of form. in instance should have 2 unitofwork operating. 1 still active underlying form , new unitofwork new form.
how implement this? unitofwork functionality provided gabriel allows 1 session per unitofwork? initial thoughts store sessions in dictionary sessions can called form or part of application.
your thoughts?
read through ayende's building desktop to-do application nhibernate in msdn magazine here: http://msdn.microsoft.com/en-us/magazine/ee819139.aspx. discusses how manage multiple units of work within thick client application.
- Get link
- X
- Other Apps
Comments
Post a Comment