How to deal with multiple databases?
Dernier message 17 sept. 2008 08:33 par dreamkey. 0 Réponses.
Version imprimable
Tri:
RetourRetour SuivantSuivant
Vous n'etes pas autorisé a poster une réponse.
Auteur Messages
dreamkey
New Member
New Member
Posts:7

--
17 sept. 2008 08:33  
I have a project that uses multiple databases.

We have a master database that stores security details, high-level application settings, and configuration data. The applicaiton allows the user to create new "Company" databases as needed. Each Company database is a separate self-contained databases. The ConnectionManager class in the company project has been modidifed to use a connections string stored in the Master databases instead of a hardcoded value.

I have created a CodeComplete (CC) project for the company database, setting up datasources for as needed. I have also created a CC project for hte Master database, with the security classes.

I had to create two separate solution files, one for each project. onces the solutions and project files were generated I closed VS and re-opened it, opening our application solution. I have added the 2 new projects (Master and Company) to the existing applcation solution. Now when I regenerate files they are all put in the Master project, with the Master namespace, even if they are set up as datasources in the company CC project.

The paths to the files have not changed, I assumed that when I regenerated something it would use the settings from the CC project and write to the predetermined path, using the established namespace, but instead it appears that CC uses the settings from the last used CC solution.

Is this a bug, or is it a design feature and I am setting up my projects incorrectly?

It has been causing lots of confusion because our newly generate files don't appear where they are supposed to, and now I have classes in the wrong projects.

Robert
Vous n'etes pas autorisé a poster une réponse.

Active Forums 4.1
NOT LICENSED FOR PRODUCTION USE
www.activemodules.com
Connexion / Inscription