Creates a new Criteria for the entity class.

Namespace: NHibernate
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
ICriteria CreateCriteria(
	Type persistentClass
)
Visual Basic
Function CreateCriteria ( _
	persistentClass As Type _
) As ICriteria
Visual C++
ICriteria^ CreateCriteria(
	Type^ persistentClass
)

Parameters

persistentClass
Type: System..::..Type
The class to Query

Return Value

An ICriteria object

See Also