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