2013年12月20日

C#调用存储过程实现分页(个人代码笔记)

摘要: 分页的存储过程:dropprocLoadPageMaincreateProcLoadPageMain@pageIndexint,@pageSizeint,@countintoutasselecttop(@pageSize)*fromdbo.MyStudentwhereFidnotin(selecttop(@pageSize*(@pageIndex-1))Fidfromdbo.MyStudentorderbyFid)orderbyFidselect@count=COUNT(1)fromdbo.MyStudentDAL层调用分页存储过程:publicListgetPagedList(intpag. 阅读全文

posted @ 2013-12-20 08:11 Creater 阅读(1518) 评论(0) 推荐(0)

导航