Exemplo 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);
        }
Exemplo 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();
        }
Exemplo 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();
        }
Exemplo 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;
        }