예제 #1
0
        public DataPaginationManager(IDBAccesser accesser, string selectStr, int page_size, bool ascending)
        {
            this.curParas = new PaginationParas();
            this.curParas.ComplexIDName = "ID";
            this.curParas.PageSize      = page_size;
            this.curParas.SelectString  = this.CheckSelectString(selectStr);
            this.curParas.ConnectString = accesser.ConnectString;
            this.curParas.DbType        = accesser.DataBaseType;
            this.curParas.DBTableName   = accesser.DbTableName;
            this.curParas.Ascending     = ascending;

            this.InitializeAdoBase(accesser.DataBaseType, accesser.ConnectString);
            this.pageCount = this.GetPageCount();
        }
예제 #2
0
 public DataPaginationManager(PaginationParas paras)
 {
     this.curParas = paras;
     this.InitializeAdoBase(this.curParas.DbType, this.curParas.ConnectString);
     this.pageCount = this.GetPageCount();
 }