|
Joutsen Persistence v0.3.0+7-ge459c44
|
A collection class representing a page of results retrived from the database. More...
Public Member Functions | |
| Page (int pageNumber, int pageSize, SCG.IEnumerable< TItem > items) | |
| Creates a new page of elements. | |
| Page (int pageNumber, int pageSize, SCG.IEnumerable< TItem > items, int totalNumberOfItems) | |
| Creates a new page of elements including the total count of elements. | |
| TItem | GetItemByAbsoluteIndex (int index) |
| Fetches an item from the page using the absolute index. | |
| TItem | GetItemByIndex (int index) |
| Fetches an item from the page using the index relative to the page's first element. | |
| int | AbsoluteIndexOf (TItem item) |
| Determines the absolute index of an item on the page. | |
| int | IndexOf (TItem item) |
| Determines the relative index of an item on the page. | |
| int | IndexOf (TItem item, SCG.IEqualityComparer< TItem > comparer) |
| Determines the relative index of an item on the page using a comparer object instead of the Equals method. | |
| bool | Contains (TItem item) |
| Checks if an item is part of the page. | |
| SCG.IEnumerator< TItem > | GetEnumerator () |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
Protected Attributes | |
| List< TItem > | items |
Properties | |
| int | PageNumber [get] |
| The number of the current page of results, zero based. | |
| int | TotalNumberOfItems [get] |
| The total number of results possible. | |
| int | PageSize [get] |
| The number items on the page. | |
| int | IndexOfFirstElement [get] |
| The absolute (ignoring pages) index of the first element on the page. | |
| int | IndexOfLastElement [get] |
| The absolute (ignoring pages) index of the last element on the page. | |
| int | Count [get] |
| The number of elements on the page. | |
| TItem | this[int index] [get] |
| Fetches the item with the index relative to the page start. | |
A collection class representing a page of results retrived from the database.
| Joutsen.Persistence.Page< TItem >.Page | ( | int | pageNumber, |
| int | pageSize, | ||
| SCG::IEnumerable< TItem > | items | ||
| ) |
Creates a new page of elements.
| pageInfo | information of the page like page size etc. |
| items | the items on the page |
| Joutsen.Persistence.Page< TItem >.Page | ( | int | pageNumber, |
| int | pageSize, | ||
| SCG::IEnumerable< TItem > | items, | ||
| int | totalNumberOfItems | ||
| ) |
Creates a new page of elements including the total count of elements.
| pageInfo | information of the page like page size etc. |
| items | the items on the page |
| totalNumberOfItems | the absolute total number of items, independent of the page |
| int Joutsen.Persistence.Page< TItem >.AbsoluteIndexOf | ( | TItem | item | ) |
Determines the absolute index of an item on the page.
| bool Joutsen.Persistence.Page< TItem >.Contains | ( | TItem | item | ) |
Checks if an item is part of the page.
| override bool Joutsen.Persistence.Page< TItem >.Equals | ( | object | obj | ) |
| SCG.IEnumerator< TItem > Joutsen.Persistence.Page< TItem >.GetEnumerator | ( | ) |
| override int Joutsen.Persistence.Page< TItem >.GetHashCode | ( | ) |
| TItem Joutsen.Persistence.Page< TItem >.GetItemByAbsoluteIndex | ( | int | index | ) |
Fetches an item from the page using the absolute index.
| TItem Joutsen.Persistence.Page< TItem >.GetItemByIndex | ( | int | index | ) |
Fetches an item from the page using the index relative to the page's first element.
| int Joutsen.Persistence.Page< TItem >.IndexOf | ( | TItem | item | ) |
Determines the relative index of an item on the page.
| int Joutsen.Persistence.Page< TItem >.IndexOf | ( | TItem | item, |
| SCG::IEqualityComparer< TItem > | comparer | ||
| ) |
Determines the relative index of an item on the page using a comparer object instead of the Equals method.
|
protected |
|
get |
The number of elements on the page.
|
get |
The absolute (ignoring pages) index of the first element on the page.
|
get |
The absolute (ignoring pages) index of the last element on the page.
|
get |
The number of the current page of results, zero based.
|
get |
The number items on the page.
|
get |
Fetches the item with the index relative to the page start.
|
get |
The total number of results possible.