[nhusers] Re: Multi-threaded NHibernate and confused

2009-02-18 Thread Fabio Maulo
The "kind of magic" of NH-Configuration and IoC-DI-AOP FWsWhat we are training to do in uNhAddIns is: 1) Program to an interface and not to an implementation 2) uNhAddIns has dependency only from the same assemblies NH need to work (in NH2.1.0 are only Iesi and log4Net) 3) maintain IoC-DI-AOP in th

[nhusers] Re: Multi-threaded NHibernate and confused

2009-02-18 Thread Fabio Maulo
2009/2/18 Graham Bunce > > Therefore my repository cannot expose NH interfaces to the domain > layer as this breaks the persistence ignorance rule however, I can > have a persistence neutral interface (e.g. IConversation as described > by Fabio) passed into my repository though if necessary. > >

[nhusers] Re: Multi-threaded NHibernate and confused

2009-02-18 Thread Graham Bunce
Gustavo, Yes, the DAL has a reference to NH but I've followed the Repository pattern from Jimmy Nilssons book Domain Driven Design. In this I have a single repository implementing an interface that is defined in the Domain Layer, that covers all objects (i.e. I do not have a repository per object

[nhusers] Re: Multi-threaded NHibernate and confused

2009-02-17 Thread Gustavo Ringel
the only layer where you are injecting the ISessionFactory is the implementation of the data layer. If you decided to go for NH, i figure out that at least at the Data Layer you want to have NH included right? If you look at the example of sessionManagement in uNHAddins you will see only at Data.

[nhusers] Re: Multi-threaded NHibernate and confused

2009-02-17 Thread Frederic
"About the use of the CxBT pattern (Conversation-per-BusinessTransaction) in ASP.NET , MVC , WCF is only one of our pending task." At least for WCF I have a serious test base if of any interest. Very interested. Fred. Fabio Maulo a écrit : > 2009/2/17 Graham Bunce

[nhusers] Re: Multi-threaded NHibernate and confused

2009-02-17 Thread Fabio Maulo
ah... I forgot one explicationWe are working especially in winForm only because you can find a lot of article, libraries, helpers and so on about NH-session-management in WEB but who are working in a rich-client environment can't find a solution in NH nor Hibernate... we are working for the for

[nhusers] Re: Multi-threaded NHibernate and confused

2009-02-17 Thread Fabio Maulo
2009/2/17 Graham Bunce > > Thanks Fabio but I'm really confused now. > > I presume your post is describing a new pattern instead of the Open > Session In View described previously. I like the idea of your pattern > as it seems to suggest its GUI agnostic (i.e. works in WinForms and > ASP.NET). >

[nhusers] Re: Multi-threaded NHibernate and confused

2009-02-17 Thread Graham Bunce
Thanks Fabio but I'm really confused now. I presume your post is describing a new pattern instead of the Open Session In View described previously. I like the idea of your pattern as it seems to suggest its GUI agnostic (i.e. works in WinForms and ASP.NET). However trying to understand nhAddIns

[nhusers] Re: Multi-threaded NHibernate and confused

2009-02-13 Thread Fabio Maulo
http://fabiomaulo.blogspot.com/2009/01/aspect-conversation-per.html http://gustavoringel.blogspot.com/2009/02/unhaddins-persistence-conversation-part.html 2009/2/13 Graham Bunce > > All, > > Asking for some advice here. My understanding of multi-threaded > programming is ok but any complex stuff