1

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?

1 Answers1

0

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.

Firo
  • 30,626
  • 4
  • 55
  • 94
  • I more interested in knowing if it is possible to use Castle.Facilities.NHibernate on .NET 3.5 because i'm also interested in using the AutoTx Facility – monster_in_parasol Dec 14 '12 at 23:02
  • i can only guess but IMO no because it most certainly uses concurrent dictionaries which were introduced in .NET 4 – Firo Dec 15 '12 at 13:24