Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scoping of class property
Message
De
21/12/2005 15:27:41
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01079106
Message ID:
01079993
Vues:
47
>Why dont you create a connection factory class and you pass same enum value to it (sql,oledb etc) and the factory will return a connection interface. Then you cast that interface to whatever concrete type you want.
>You can use same approach without passing the param but getting the params for factory from your ini file.

The way it is now, I only have to read the Main.ini once. As far as I understand, from the last line you wrote, it seems the factory class will have to read the Main.ini for every data request.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform