Question

I have been looking for a good example of WCF and NHibernate facilities working together, (one session per web request, etc) but all the tutorials i find are dated 2009 and older. I am afraid i may lose my time trying to implement all this when there are probably better ways to achieve this.

The other thing i noticed is that Rhino.Commons.NHRepository was popular three years ago, but i can't find anything related to this assembly more recent than that. Any reason for this?

Anyone can point me on good examples on how to implement WCF and NHibernate using facilities?

NHRepository? RIP?

Thanks

Was it helpful?

Solution

It seems to be dead. I would suggest you to use one of popular IoC containers to manage lifetime of session and session factory. Almost all modern containers have integration with WCF including per request lifetime.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top