I am writing a new multi-user WCF RIA application. I plan to have a common database with a separate SQL Server schema for each tenant. I would like to use NHibernate for object-rational mapping.
The configuration of the SQL Server schema in the mapping classes does not help, because it is static and each tenant will need one set of mapping classes.
Is it possible to dynamically configure ISession, which SQL Server schema should be used to map objects to tables?
source share