I have a simple console application with a get,update,add and delete method. I'm currently using a SQL Server in the background.
Now I want to improve this with adding a config file which lets you choose the type of the database e.g. MySql or Oracle or Msql.
My idea is to create different Server layers and a DB Interface which lets me access the Server layer. My main class would access the DB layer through dependecy injection.
Thats the general idea right now however I dont have a clue how to do this.
Are there other ways or does anyone know how to do this?