title: Multi Database for Multi Tenant with Code first EF 6 and ASP.Net MVC 4
body: <p>I am building a SAAS application and planned for one database per client. I am using Code First EF6 with ASP.Net MVC 4.</p>
  
  <p>There will be 2 context i.e. MasterContext and TenantContext. User will first hit to MasterContext to authenticate user credentials and fetch its Tenant configuration.</p>
  
  <p>Based on fetched Tenant configuration; TenantContext is set to Tenant specific database and used for Tenant CRUD operations.</p>
  
  <p>Please advice how to achieve this.</p>