/// <summary> /// 根据条件分页查询(虚方法,可重写) /// </summary> /// <param name="startRecordIndex">当前页数据记录的起始索引,从1开始</param> /// <param name="pageSize">每页显示的记录数</param> /// <param name="condition">查询条件,如为null或未设置查询条件则查询所有</param> /// <param name="orderPropertyColl">排序条件</param> /// <returns>查询结果</returns> public virtual IList <T> SelectByPage(int startRecordIndex, int pageSize, Hashtable condition = null, NameValueCollection orderPropertyColl = null) { AddOrderPropertyCondition(condition, orderPropertyColl); Hashtable ht = DaoHelper.ProcessConditionHashtable(condition); DaoHelper.SetPageArg(ref ht, startRecordIndex, pageSize); return(_sqlMapper.QueryForList <T>(GetStatementIdWithNamespace(SqlMapConstants.SelectByPageStatementId), ht)); }