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

Click here to load this message in the networking platform