I have two databases, and depending on context I need to retrieve records (of the same type) from either one. How should I design the class that will retrieve the objects from the database, is there a better way than passing the database ceonnection string as a constructor to the class?
Share
If the only difference in the whole implementation is the connection string I would stick with that no need to complicate matters.