Performs a simple query and paginate the results.
There's no need to supply a returnType, like in SimpleQuery, as we do not perform the conversion of the query results to an array.
Inheritance: AbstractPaginableQuery
Esempio n. 1
0
        /// <summary>
        /// Paginates using an <see cref="ARPaginableSimpleQuery"/>
        /// </summary>
        public static IPager Paginate(int pageSize, Type targetType, string hql, params object[] parameters)
        {
            IARPaginable q = new ARPaginableSimpleQuery(targetType, hql, parameters);

            return(Paginate(pageSize, q));
        }
Esempio n. 2
0
		/// <summary>
		/// Paginates using an <see cref="ARPaginableSimpleQuery"/>
		/// </summary>
		public static IPaginatedPage CreatePagination(int pageSize, Type targetType, string hql, params object[] parameters)
		{
			IARPaginableDataSource criteria = new ARPaginableSimpleQuery(targetType, hql, parameters);
			return CreatePagination(pageSize, criteria);
		}
Esempio n. 3
0
        /// <summary>
        /// Paginates using an <see cref="ARPaginableSimpleQuery"/>
        /// </summary>
        public static IPaginatedPage CreatePagination(int pageSize, Type targetType, string hql, params object[] parameters)
        {
            IARPaginableDataSource criteria = new ARPaginableSimpleQuery(targetType, hql, parameters);

            return(CreatePagination(pageSize, criteria));
        }