I am new to Castle Windsor and Fluent NHibernate (AutoMapping).
I am currently working on multi Tenant application and have following requirement.
- Master Database to store tenant information
- Database per tenant
I have integrated the persistence facility using castle Windsor and I am able to access the Master Database. I am getting stuck where in I want to get the connection info for the tenant from the master Db, pass this information to the persistence facility again to build new session. So, eventually can have access to master db and tenant specific Db.
Can any one guide me how can I proceed on this.
In short:
On user log in, I want to validate the user and identify its tenant Database connection string from master db and use this info to build new session for tenant specific db operations.