Ejemplo n.º 1
0
 /// <summary>
 /// 查询并且返回DataSet(游标分页)
 /// </summary>
 /// <param name="sql">要查询的SQL语句</param>
 /// <param name="objPage">分页对象</param>
 /// <param name="oper">数据库对象</param>
 /// <param name="curType">映射的实体类型(如果用回数据库的原列名,则此为null)</param>
 /// <returns></returns>
 public DataTable QueryDataTable(string sql, PageContent objPage, DataBaseOperate oper, Type curType)
 {
     return(CursorPageCutter.QueryDataTable(sql, objPage, oper, curType));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 游标分页
 /// </summary>
 /// <typeparam name="T">实体类型</typeparam>
 /// <param name="sql">sql语句</param>
 /// <param name="objPage">分页实体</param>
 /// <param name="oper">数据库链接</param>
 /// <returns></returns>
 public IDataReader Query(string sql, PageContent objPage, DataBaseOperate oper)
 {
     return(CursorPageCutter.Query(sql, objPage, oper));
 }