The reason why I stumbled upon NHibernate.Burrow is that the current solution I use to manage multiple databases isn't clean enough. For the moment the code is based on the SessionManager created by Billy McCafferty (http://www.codeproject.com/KB/architecture/ NHibernateBestPractices.aspx & http://code.google.com/p/sharp-architecture/), but here I need to get a session by the name of its configuration file. Each repository has a string in it with that name. When I looked at Burrow I noticed that I can get a session by type, and that Burrow knows what configuration file is related to that type. It is a lot cleaner and my BaseRepository or BaseDao, doesn't need a string paramter in the constructor that links to the configuration.
I know that Burrow is a project to help with web-development, but the company I work for has windows forms, web and wcf projects that run as windows service, who all use NHibernate. It would be very practical if all those projects could use the same SessionManager and same BaseRepository. The WCF-projects follow almost the same flow as a ASP.NET application, so there I would say a workspace per request. But for the windows forms, I must disappoint you I have no idea either. Monday I will ask my colleagues at work who do the forms development, what they think Burrow should do. I'll keep you informed. On Sep 12, 8:45 pm, "http://kwang.us" <[EMAIL PROTECTED]> wrote: > 1, We can have strong name when it is released. > 2, Workspace is an independent NHibernate working environment with > it's own NHibernate session. > For web application each request has its own workspace. Currently, we > are not quite sure about how windows forms application should use > Burrow. > If you can provide feedback or you vision on the architecture of > winform apps on burrow, it would be appreciated. > 3, in the Burrow CR1 release, there is a bug related to multi database > management, please either update from trunk or wait for the next > release. > > On Sep 12, 10:11 am, Jochen Jonckheere <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > I've been playing with NHibernate.Burrow, but have encountered some > > issues I like somebody to help me with. > > > 1. NHibernate.Burrow doesn't have a strong name, will this be the case > > when it is released? > > 2. In a windows forms application I have to Init the workspace, can > > somebody explain the workspaces? Where is it best used? > > > The reason for me to use NHibernate.Burrow is it can handle multiple > > databases in a clean way. For the moment I don't need the other stuff. > > > Kind regards, > > > Jochen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
