.NET MVC sample code needed using Castle Windsor, NHibernate and FNH.
## Deliverables
This is a "reduced scope" version of a project posted earlier, in the hope that it will better clarify the immediate need. It will also serve as a 'test' for narrowing down developers for a SaaS application development project in the next month or two.
-------------------------------------
What we'd like you to do is take this facility/class: [[login to view URL]][1]
and change it so that it works with master + tenant databases.
Here's how it would work:
- App starts up, and uses the connection string in [login to view URL] to load up the sessionfactory for the master database (as shown in github code sample above)
- Another method in [login to view URL] queries a tenant table in this master database to get list of all tenants (id, url, and connection string)
- Then we loop through the list of tenants and create a sessionfactory for each one, which is then available to a basecontroller via Windsor IOC (using IHandlerSelector)
There's 2 parts to this:
- The database & sessionfactory part
- The ihandlerselector/IOC part
In case its not evident already, this is going to be the framework for 2 different SaaS apps we'll be building in the near future, and so we'd like the code to be more 'real-world' rather than a quick and hurried code snippet.
Please let us know if you have any questions.