>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.