Create a new ICriteria, "rooted" at the associated entity, using the specified join type.

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

Syntax

C#
ICriteria CreateCriteria(
	string associationPath,
	JoinType joinType
)
Visual Basic
Function CreateCriteria ( _
	associationPath As String, _
	joinType As JoinType _
) As ICriteria
Visual C++
ICriteria^ CreateCriteria(
	String^ associationPath, 
	JoinType joinType
)

Parameters

associationPath
Type: System..::..String
A dot-seperated property path
joinType
Type: NHibernate.SqlCommand..::..JoinType
The type of join to use

Return Value

The created "sub criteria"

See Also