Create a new Criteria instance, for the given entity name, with the given alias.

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

Syntax

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

Parameters

entityName
Type: System..::..String
The name of the entity to Query
alias
Type: System..::..String
The alias of the entity

Return Value

An ICriteria object

See Also