Entity Framework Code First with SQL Server Synonyms
I have the situation where I will have multiple companies accessing a single instance of my application, but I need to segregate their data to avoid accidentally loading data for another company, and to ease per-company database backups. Ideally, I'd like to split the data up into different databases as follows: One SQL Server database for a list of all the users, together with any tables that are common across all users / companies N number of company specific databases , each with the same schema but different data for each company. On logging in, I would dynamically select the database for