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

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

Syntax

Visual Basic (Declaration)
Function CreateAlias ( _
	associationPath As String, _
	alias As String, _
	joinType As JoinType _
) As ICriteria
C#
ICriteria CreateAlias(
	string associationPath,
	string alias,
	JoinType joinType
)
Visual C++
ICriteria^ CreateAlias(
	String^ associationPath, 
	String^ alias, 
	JoinType joinType
)
JavaScript
function createAlias(associationPath, alias, joinType);

Parameters

associationPath
Type: System..::.String
alias
Type: System..::.String
joinType
Type: NHibernate.SqlCommand..::.JoinType
The type of join to use.

Return Value

this (for method chaining)

See Also