C# Class Castle.MonoRail.ActiveRecordSupport.Pagination.ARPaginableCriteria

A paginable criteria. Mimics the ActiveRecordMediator.FindAll(Type) interface.
Inheritance: IARPaginableDataSource
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Méthodes publiques

Méthode Description
ARPaginableCriteria ( Type targetType ) : System
ARPaginableCriteria ( Type targetType, NHibernate.Expression.Order orders ) : System
ListAll ( ) : IEnumerable
ObtainCount ( ) : int

Implementors should execute a query to return the record count

This needs a performance boost. Couldn't think of a better way of get the count.

Paginate ( int pageSize, int currentPage ) : IEnumerable

Private Methods

Méthode Description
InternalExecute ( bool skipPagination ) : IEnumerable

Method Details

ARPaginableCriteria() public méthode

public ARPaginableCriteria ( Type targetType ) : System
targetType System.Type
Résultat System

ARPaginableCriteria() public méthode

public ARPaginableCriteria ( Type targetType, NHibernate.Expression.Order orders ) : System
targetType System.Type
orders NHibernate.Expression.Order
Résultat System

ListAll() public méthode

public ListAll ( ) : IEnumerable
Résultat IEnumerable

ObtainCount() public méthode

Implementors should execute a query to return the record count
This needs a performance boost. Couldn't think of a better way of get the count.
public ObtainCount ( ) : int
Résultat int

Paginate() public méthode

public Paginate ( int pageSize, int currentPage ) : IEnumerable
pageSize int
currentPage int
Résultat IEnumerable