what can be a easy way to create new db when we create new customer record?
Scenario:
- I have list of customers [may be upto 500 customers] in master database
- Whenever I add new customer in my application, I would like to create new separate database to each client [just to separate respective clients' data entirely from each other]
Application will connect to master database and respective client db as per login credential.
- No of customers may be upto 500,
- I am planning to add only 50 dbs per server instance, after that again will be adding to next server instance
Options I have selected:
- Use Code first approach of ef6.0 to create and seed primary data of each client when new client is added
- Use Custom "Create database script" and import seed data from custom script.sql file