public static NHibernate.ICriteria CreateCriteria<TEntityType>( string aliasName, string sortExpression ) where TEntityType: class
Parameters
- aliasName
- Alias for the entity
- 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