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
示例#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));
        }
示例#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);
		}
示例#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));
        }