Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
        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;
        }