Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scoping of class property
Message
From
21/12/2005 15:27:41
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01079106
Message ID:
01079993
Views:
50
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform