Join an association using the specified join-type, assigning an alias to the joined association

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

Syntax

C#
ICriteria CreateAlias(
	string associationPath,
	string alias,
	JoinType joinType,
	ICriterion withClause
)
Visual Basic
Function CreateAlias ( _
	associationPath As String, _
	alias As String, _
	joinType As JoinType, _
	withClause As ICriterion _
) As ICriteria
Visual C++
ICriteria^ CreateAlias(
	String^ associationPath, 
	String^ alias, 
	JoinType joinType, 
	ICriterion^ withClause
)

Parameters

associationPath
Type: System..::..String

[Missing <param name="associationPath"/> documentation for "M:NHibernate.ICriteria.CreateAlias(System.String,System.String,NHibernate.SqlCommand.JoinType,NHibernate.Criterion.ICriterion)"]

alias
Type: System..::..String

[Missing <param name="alias"/> documentation for "M:NHibernate.ICriteria.CreateAlias(System.String,System.String,NHibernate.SqlCommand.JoinType,NHibernate.Criterion.ICriterion)"]

joinType
Type: NHibernate.SqlCommand..::..JoinType
The type of join to use.
withClause
Type: NHibernate.Criterion..::..ICriterion
The criteria to be added to the join condition (ON clause)

Return Value

this (for method chaining)

See Also