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(); }
public DataPaginationManager(PaginationParas paras) { this.curParas = paras; this.InitializeAdoBase(this.curParas.DbType, this.curParas.ConnectString); this.pageCount = this.GetPageCount(); }