سؤال

I'm developing an ASP.NET application using Windsor and NHibernate. I want to use Castle's new NHibernateFacility but I'm stuck on .NET 3.5 and NHibernateFacility along with AutoTx are targeted only to .NET 4.

Is it safe to recompile them on v3.5? If not, is there another easy way to maintain more than one ISessionFactory per application?

هل كانت مفيدة؟

المحلول

the easiest way is IDictionary<string, ISessionFactory>. If the access is single threaded or all sessionfactories are initialised at startup then no synchronisation is needed.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top