Свойство | Type | Description | |
---|---|---|---|
pageSize | int |
Méthode | Description | |
---|---|---|
AbstractPaginableQuery ( |
||
ListAll ( ) : IEnumerable | ||
ObtainCount ( ) : int |
Executes a query to return the record count
|
|
Paginate ( int pageSize, int currentPage ) : IEnumerable |
Returns the page items. Actually, the implementation just sets the protected fields pageSize and currentPage, gets an ISession from
|
Méthode | Description | |
---|---|---|
BuildCountHQL ( ) : string | ||
BuildHQL ( ) : string |
Should be overriden to return the custom HQL to be ran.
|
|
CreateQuery ( ISession session ) : IQuery | ||
ExecuteQuery ( IQuery query ) : IEnumerable |
Override to provide a custom query execution. The default behaviour is to just call IQuery.List().
|
|
InternalEnumerate ( ISession session ) : IEnumerable |
The implementation of the InternalEnumerate method, as required by ActiveRecordBaseQuery. Should not be overriden.
|
|
InternalExecute ( ISession session ) : object |
The implementation of the InternalExecute method, as required by ActiveRecordBaseQuery. Should not be overriden.
|
|
SetQueryParameters ( IQuery query ) : void |
May be overriden, in order to set custom query parameters.
|
Méthode | Description | |
---|---|---|
InternalPaginate ( ISession session, bool skipPagination ) : IEnumerable | ||
PrepareQueryForPagination ( IQuery query ) : void |
For internal use only.
|
public AbstractPaginableQuery ( |
||
targetType | ||
Résultat | System |
protected final CreateQuery ( ISession session ) : IQuery | ||
session | ISession | |
Résultat | IQuery |
protected ExecuteQuery ( IQuery query ) : IEnumerable | ||
query | IQuery | The query |
Résultat | IEnumerable |
protected final InternalEnumerate ( ISession session ) : IEnumerable | ||
session | ISession | The NHibernate Session |
Résultat | IEnumerable |
protected final InternalExecute ( ISession session ) : object | ||
session | ISession | The NHibernate Session |
Résultat | object |
public Paginate ( int pageSize, int currentPage ) : IEnumerable | ||
pageSize | int | The page size |
currentPage | int | The current page |
Résultat | IEnumerable |
protected SetQueryParameters ( IQuery query ) : void | ||
query | IQuery | The query |
Résultat | void |