Join an association, assigning an alias to the joined entity

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

Syntax

C#
IQueryOver<TRoot, TSubType> JoinAlias(
	Expression<Func<TSubType, Object>> path,
	Expression<Func<Object>> alias,
	JoinType joinType
)
Visual Basic
Function JoinAlias ( _
	path As Expression(Of Func(Of TSubType, Object)), _
	alias As Expression(Of Func(Of Object)), _
	joinType As JoinType _
) As IQueryOver(Of TRoot, TSubType)
Visual C++
IQueryOver<TRoot, TSubType>^ JoinAlias(
	Expression<Func<TSubType, Object^>^>^ path, 
	Expression<Func<Object^>^>^ alias, 
	JoinType joinType
)

Parameters

path
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'TSubType, Object>)>)>>)>)>
Lambda expression returning association path
alias
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'Object>)>)>>)>)>
Lambda expression returning alias reference
joinType
Type: NHibernate.SqlCommand..::..JoinType
Type of join

Return Value

criteria instance

See Also