public CustomerDAL(DataBaseTypes type) { Console.WriteLine("CustomerDAL.CustomerDAL()"); if (type == DataBaseTypes.SqlDatabase) database = new CustomSqlDataBase("connection string for sql server db"); else if(type == DataBaseTypes.MySqlDatabase) database = new CustomMySqlDataBase("connection string for sql server db"); }