Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.DomainModel Namespace / NHibernateHelper Class / CreateCriteria Method / CreateCriteria<TEntityType>(String,Int32,Int32,String) Method
The entity type to create a criteria for
Alias for the entity
Maximum number of rows to retrieve.
Starting index from where to start retrieving.
The sort expression to use for sorting the loaded objects.
In This Topic
    CreateCriteria<TEntityType>(String,Int32,Int32,String) Method
    In This Topic
    Creates an NHibernate Criteria object
    Syntax
    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
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also