public DatabaseDeleteQuery(string tableName, string restriction) { DatabaseHelperSettings settings = new DatabaseHelperSettings(); DatabaseConnectionString dbString = new DatabaseConnectionString(settings.dbHost, settings.dbUsername, settings.dbPassword, settings.dbName); base.dbString = dbString; this.tableName = tableName; this.restriction = base.RealEscapeString(restriction); }
public DatabaseInsertQuery(string tableName) { DatabaseHelperSettings settings = new DatabaseHelperSettings(); DatabaseConnectionString dbString = new DatabaseConnectionString(settings.dbHost, settings.dbUsername, settings.dbPassword, settings.dbName); base.dbString = dbString; this.tableName = tableName; InsertColName = new ArrayList(); InsertData = new ArrayList(); }
public DatabaseRetriveQuery(string tableName) { DatabaseHelperSettings settings = new DatabaseHelperSettings(); DatabaseConnectionString dbString = new DatabaseConnectionString(settings.dbHost, settings.dbUsername, settings.dbPassword, settings.dbName); base.dbString = dbString; this.tableName = tableName; SelectColumn = new ArrayList(); Restrictions = new ArrayList(); }
public DatabaseUpdateQuery(string tableName, string restriction) { DatabaseHelperSettings settings = new DatabaseHelperSettings(); DatabaseConnectionString dbString = new DatabaseConnectionString(settings.dbHost, settings.dbUsername, settings.dbPassword, settings.dbName); base.dbString = dbString; this.tableName = tableName; UpdateData = new ArrayList(); this.restriction = restriction; }