using custom data

Sep 1, 2008 at 3:31 PM
Hi,
I am creating a website for intranet application.
This intranet application is built using NHibernate for data access, so i have already domain objects and nhibernate mappings.
As n2cms uses also Nhibernate i was wondering how would be most efficient and logical way to setup my custom data access.

thanx
Coordinator
Sep 1, 2008 at 5:10 PM
The least error prone solution is probably having each system maintain their own session factory and work in parallel. You could just use the N2 to manage the content related parts. A simple solution would be deep linking into intranet features.

It is possible to have N2 use the other application's session factory or the other way around. You would need to add your own implementations of IConfigurationBuilder and ISessionProvider. If it's worth the effort depends on the nature of your intranet application.

It's an interesting scenario and I'd like to hear more about it.