public void InitializeConnection(DatabaseType db) { if (db == DatabaseType.SQLite) { Connection = new SQLiteConnector(this); if (!File.Exists($"{ SQLitePath}{ SQLiteFile}")) { using (IDbConnection connection = new SQLiteConnection(ConnectionString())) { connection.Execute(SQLiteConnector.CreateDataBase()); } } } else { throw new ArgumentException($"Unsupported database type provided.", nameof(db)); } }