General information
Category:
Coding, syntax and commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only