1. In my DAL , I have an enum:
Public Enum DataProvider
2. In UI, I have a radiobutton that user can select either "sql server" or "IBM".
3. In my DAL right now, I have a class and this line of code ***hardcoded***:
Dim dbManager As IDBManager = New DBManager(DataProvider.SqlServer)
But I dont want to hardcode "DataProvider.SQlServer". I want to set it based on user's selection. I think I need to use maybe *** class properties *** in my DAL to set the proper enum values...
Is that correct? How can I pass that value and make use of the enum instead of hardcoding the value?