return Session.CreateCriteria<T>()
.AddOrder(Order.Asc("Id"))
.SetFirstResult((pageNumber - 1) * pageSize)
.SetMaxResults(pageSize)
.List();
return (int) session.CreateCriteria<T>()
.SetProjection(Projections.Count("Id")); // Любое поле
.UniqueResult();
return Session.QueryOver<T>()
.OrderBy(x => x.Id).Asc
.Take(pageSize)
.Skip((pageNumber - 1) * pageSize)
.List();
return Session.QueryOver<T>().RowCount();