|
Joutsen Persistence v0.3.0+1-ga730d6d
|
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. More... | |
| Page (int pageNumber, int pageSize, SCG.IEnumerable< TItem > items, int totalNumberOfItems) | |
| Creates a new page of elements including the total count of elements. More... | |
| TItem | GetItemByAbsoluteIndex (int index) |
| Fetches an item from the page using the absolute index. More... | |
| TItem | GetItemByIndex (int index) |
| Fetches an item from the page using the index relative to the page's first element. More... | |
| int | AbsoluteIndexOf (TItem item) |
| Determines the absolute index of an item on the page. More... | |
| int | IndexOf (TItem item) |
| Determines the relative index of an item on the page. More... | |
| 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. More... | |
| bool | Contains (TItem item) |
| Checks if an item is part of the page. More... | |
| 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. More... | |
| int | TotalNumberOfItems [get] |
| The total number of results possible. More... | |
| int | PageSize [get] |
| The number items on the page. More... | |
| int | IndexOfFirstElement [get] |
| The absolute (ignoring pages) index of the first element on the page. More... | |
| int | IndexOfLastElement [get] |
| The absolute (ignoring pages) index of the last element on the page. More... | |
| int | Count [get] |
| The number of elements on the page. More... | |
| TItem | this[int index] [get] |
| Fetches the item with the index relative to the page start. More... | |
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.