Пример #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();
        }
Пример #2
0
 // ============================================
 // PUBLIC Methods
 // ============================================
 public void Dispose()
 {
     db.Dispose();
     db = null;
 }