Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
My project is CRM application which i want to make it on cloud base, so want to create single application with multi users and multi databases.But i was created single application with multi users and single database.For this just I pass the user id to every table for retrieve,insert and update.so now how to change it to single application with multi users and multi databases in asp.net project?
Posted
Comments
Why you need multi database?
Dawood507 2-May-15 5:40am    
because multi users will operate it.
In the same database you can store the data, why multiple database. I don't understand your architecture.
Dawood507 2-May-15 6:22am    
because i can provide services to multiple companies and companies can have multiple users, so one company should not see other company's data for that i have created multiple users app but problem in this is one user can maintain only one database if company want more than one user then cant maintain one database to those all.

1 solution

Quote:
if company want more than one user then cant maintain one database to those all.
You can. Just add a ne Column to the Users Table as "CompanyId", which would be a ForeignKey to the Companies Table.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900