NHibernate version: 1.0.2
Hi all :)
To separate data I have to create a couple of schemata with the same table structure. Just a bunch of copies of the original schema.
Now the question is what's the best practise to configure such an application?
Do I need to define a complete new configuration file for each schema? Like illustrated here...
Code:
ISessionFactory sessionF1 = new Configuration()
.Configure("/home/schema1.cfg.xml")
.BuildSessionFactory();
ISessionFactory sessionF2 = new Configuration()
.Configure("/home/schema2.cfg.xml")
.BuildSessionFactory();
Or is there another - maybe shorter - way?
Many thanks in advance!
Chavez