Creates a new Criteria for the entity class with a specific alias

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

Syntax

C#
ICriteria CreateCriteria(
	Type persistentClass,
	string alias
)
Visual Basic
Function CreateCriteria ( _
	persistentClass As Type, _
	alias As String _
) As ICriteria
Visual C++
ICriteria^ CreateCriteria(
	Type^ persistentClass, 
	String^ alias
)

Parameters

persistentClass
Type: System..::..Type
The class to Query
alias
Type: System..::..String
The alias of the entity

Return Value

An ICriteria object

See Also