// ============================================ // PUBLIC Constructors // ============================================ public DbTable(string table) { // SQLite File Path string dbPath = Path.Combine(Utils.Paths.ConfigDirectory, dbName); // Connect To SQLite DB and Open Connection db = new SQLite(dbPath); db.Open(); // Create Table if doesn't exists. if (db.TableExists(table) == false) CreateAccountsTable(); }
// ============================================ // PUBLIC Methods // ============================================ public void Dispose() { db.Dispose(); db = null; }