public Database(string path) { this.path = path; this.key = "33053600"; this.iv = "00000000"; this.db_type = A.DB.DbType.ACCESS; }
public Database(string path, string key, string iv) { this.path = path; this.key = key; this.iv = iv; this.db_type = A.DB.DbType.ACCESS; }
public Database() { this.path = "database.dat"; this.key = "33053600"; this.iv = "00000000"; this.db_type = A.DB.DbType.ACCESS; }
public string getDatabaseConnectionString(A.DB.DbType type) { switch (type) { case A.DB.DbType.MSSQL: return(this.getSQLConnectionString()); case A.DB.DbType.ACCESS: return(this.getAccessConnectionString()); case A.DB.DbType.EXCEL: return(this.getExcelConnectionString()); case A.DB.DbType.ORACLE: return(this.getOracleConnectionString()); case A.DB.DbType.VISTADB: return(this.getVistaDbConnectionString()); } return(null); }