Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DatabaseKey Question
Message
De
03/06/2003 16:01:06
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00795796
Message ID:
00795882
Vues:
24
Have you looked at DatabaseSets? We don't have multiple apps, but we do have multiple dbcs available for connection. We use the same DatabaseKey for all our dbcs, and use the DatabaseSet to separate them.

The mmAppBase.DatabaseMgr object has a DatabaseSetKey property, which, when set, (re)assigns the data access objects to the newly selected database, so you could use that in each main app's startup... maybe the load of your MainForm (I'm sure you get the picture).

The good part about this, too, is that we don't have to change our business app aBusinessObject's DatabaseKey.

Hope that helps,
---J

>Is it possible to assign the DatabaseKey in the main application project instead of the business object project. I have multiple application projects that uses the same business object project, but connect to different database for testing. Currently the DatabaseKey is hardcoded in the business object base class, is it possible to override that somewhere in the main application project?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform