A paginable criteria. Mimics the ActiveRecordMediator.FindAll(Type) interface.
Inheritance: IARPaginableDataSource
Ejemplo n.º 1
0
		/// <summary>
		/// Paginates using an <see cref="ARPaginableCriteria"/>
		/// </summary>
		public static IPaginatedPage CreatePagination(int pageSize, Type targetType, DetachedCriteria detachedCriteria)
		{
			IARPaginableDataSource criteria = new ARPaginableCriteria(targetType, detachedCriteria);
			return CreatePagination(pageSize, criteria);
		}
Ejemplo n.º 2
0
		/// <summary>
		/// Paginates using an <see cref="ARPaginableCriteria"/>
		/// </summary>
		public static IPaginatedPage CreatePagination(int pageSize, Type targetType, Order[] orders, params ICriterion[] criterions)
		{
			IARPaginableDataSource criteria = new ARPaginableCriteria(targetType, orders, criterions);
			return CreatePagination(pageSize, criteria);
		}
Ejemplo n.º 3
0
        /// <summary>
        /// Paginates using an <see cref="ARPaginableCriteria"/>
        /// </summary>
        public static IPaginatedPage CreatePagination(int pageSize, Type targetType, DetachedCriteria detachedCriteria)
        {
            IARPaginableDataSource criteria = new ARPaginableCriteria(targetType, detachedCriteria);

            return(CreatePagination(pageSize, criteria));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Paginates using an <see cref="ARPaginableCriteria"/>
        /// </summary>
        public static IPager Paginate(int pageSize, Type targetType, Order[] orders, params ICriterion[] criterions)
        {
            IARPaginable q = new ARPaginableCriteria(targetType, orders, criterions);

            return(Paginate(pageSize, q));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Paginates using an <see cref="ARPaginableCriteria"/>
        /// </summary>
        public static IPaginatedPage CreatePagination(int pageSize, Type targetType, Order[] orders, params ICriterion[] criterions)
        {
            IARPaginableDataSource criteria = new ARPaginableCriteria(targetType, orders, criterions);

            return(CreatePagination(pageSize, criteria));
        }