存储过程分页: create proc PR_PagerDataByTop @pageIndex int, @pageSize int, @count int out as select top(@pageSize) * from dbo.userInfo where ID not in ( )*@pageSize) ID from dbo.userInfo ) ) from dbo.userInfo) top pager alter proc PR_PagerDataByRow @pageIn
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace MvcTest.Extends { /// <summary> /// 分页元素位置 /// </summary> public enum PagerElementPosition { Left, Right } public class PagerConfig { /// <summar