Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     _pager           = new PagerHelper(GetCurrentPage(), GetPageSize(), LinkRepository.GetCount());
     Links.DataSource = LinkRepository.CreateQuery(
         "from Link l order by l.Category.Name, l.Name"
         ).SetFirstResult(_pager.CurrentRow).SetMaxResults(_pager.PageSize).List();
     Links.DataBind();
 }