iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

IPaginatedList Members

IPaginatedList overview

Public Instance Properties

IsFirstPage Is the current page the first page ? True if the current page is the first page or if only a single page exists.
IsLastPage Is the current page the last page ? Return True if the current page is the last page or if only a single page exists.
IsMiddlePage Is the current page a middle page (i.e. not first or last) ? Return True if the current page is not the first or last page, and more than one page exists (always returns false if only a single page exists).
IsNextPageAvailable Is a page available after the current page ? Return True if the next page is available
IsPreviousPageAvailable Is a page available before the current page ? Return True if the previous page is available
PageIndex Returns the current page index, which is a zero based integer. All paginated list implementations should know what index they are on, even if they don't know the ultimate boundaries (min/max)
PageSize The maximum number of items per page.

Public Instance Methods

GotoPage Moves to a specified page. If the specified page is beyond the last page, wrap to the first page. If the specified page is before the first page, wrap to the last page.
NextPage Moves to the next page after the current page. If the current page is the last page, wrap to the first page.
PreviousPage Moves to the page before the current page. If the current page is the first page, wrap to the last page.

See Also

IPaginatedList Interface | IBatisNet.Common.Pagination Namespace