Hi,
I am developing a winforms project.
I have a heads database in which I store the list of companies (each company has a database with different name ).
Based on the company selected by the user, I have to connect to the corresponding database.
In this scenario, if a user creates a new company, I have to insert a record in the heads database, create a new database for the company and insert the company details in the company database also.
If any one process fails, I have to rollback all the prior database calls.
Please advise me which model to use, the adapter model or self servicing.
Also guide me in how in can be accomplished in a clean way.
I tried a lot of possible methods with some problem or the other.
Thanks in advance.