A paginable criteria. Mimics the ActiveRecordMediator.FindAll(Type) interface.
Inheritance: IARPaginableDataSource
		/// <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);
		}
		/// <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);
		}
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }