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<T>(
	string alias
)
where T : class
Visual Basic
Function CreateCriteria(Of T As Class) ( _
	alias As String _
) As ICriteria
Visual C++
generic<typename T>
where T : ref class
ICriteria^ CreateCriteria(
	String^ alias
)

Parameters

alias
Type: System..::..String
The alias of the entity

Type Parameters

T
The entity class

Return Value

An ICriteria object

See Also