I am using .net 4.5 with NHibernate 3.3.3.4000 and I want to configurate a nhibernate.config with 2 session-factories. I tried to configurate my nhibernate.config this way:
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory name="Configuration">
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property>
<property name="connection.connection_string">Data Source=Configuration.db;Version=3</property>
<property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
<property name="query.substitutions">true=1;false=0</property>
<property name="show_sql">false</property>
<mapping assembly="DataModel"/>
</session-factory>
<session-factory name="Texts">
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property>
<property name="connection.connection_string">Data Source=Texts.db;Version=3</property>
<property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
<property name="query.substitutions">true=1;false=0</property>
<property name="show_sql">false</property>
<mapping assembly="DataModel_Texts"/>
</session-factory>
</hibernate-configuration>
But I get a HibernateConfigException that the "session-factory" is invalid: An exception occurred parsing configuration :The element 'hibernate-configuration' in namespace 'urn:nhibernate-configuration-2.2' has invalid child element 'session-factory' in namespace 'urn:nhibernate-configuration-2.2'.
Do you have an idea how I can configure the file with 2 session factories?
best regards Phil