/// <summary> /// 创建一个分页设置. /// </summary> /// <param name="storeType">分页设置的存储方式.</param> /// <param name="storeKey">分页设置的存储关键字.</param> /// <param name="paginalCount">每页包含的数据条数, 如果小于等于 0, 则默认为 20.</param> public PagerSetting(PagerStoreType storeType, string storeKey, int paginalCount) : base(PagerBuilder.GetIndex(storeType, storeKey), paginalCount) { if (string.IsNullOrEmpty(storeKey)) { throw new ArgumentNullException("storeKey", "分页设置的存储关键字不能为空"); } this.storeType = storeType; this.storeKey = storeKey; this.ItemCount = PagerBuilder.GetItemCount(storeType, storeKey); }
protected override void setPager(TableSetting <P> tableSetting, PagerActionType actionType, int pagerIndex) { base.setPager(tableSetting, actionType, pagerIndex); PagerBuilder.SetPagerSetting(tableSetting.PagerSetting); }