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<Object>> path,
	Expression<Func<Object>> alias
)
Visual Basic
Function JoinAlias ( _
	path As Expression(Of Func(Of Object)), _
	alias As Expression(Of Func(Of Object)) _
) As IQueryOver(Of TRoot, TSubType)
Visual C++
IQueryOver<TRoot, TSubType>^ JoinAlias(
	Expression<Func<Object^>^>^ path, 
	Expression<Func<Object^>^>^ alias
)

Parameters

path
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'Object>)>)>>)>)>
Lambda expression returning association path
alias
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'Object>)>)>>)>)>
Lambda expression returning alias reference

Return Value

criteria instance

See Also