public static NHibernate.ICriteria CreateCriteria<TEntityType>( string aliasName, int maximumRows, int startRowIndex, string sortExpression ) where TEntityType: class
Parameters
- aliasName
- Alias for the entity
- maximumRows
- Maximum number of rows to retrieve.
- startRowIndex
- Starting index from where to start retrieving.
- sortExpression
- The sort expression to use for sorting the loaded objects.
Type Parameters
- TEntityType
- The entity type to create a criteria for
Return Value
An NHibernate criteria object