Esempio n. 1
0
        // ============================================
        // 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();
        }
Esempio n. 2
0
 // ============================================
 // PUBLIC Methods
 // ============================================
 public void Dispose()
 {
     db.Dispose();
     db = null;
 }