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<U>(
	Expression<Func<U>> path,
	Expression<Func<U>> alias,
	JoinType joinType,
	ICriterion withClause
)
Visual Basic
Function JoinAlias(Of U) ( _
	path As Expression(Of Func(Of U)), _
	alias As Expression(Of Func(Of U)), _
	joinType As JoinType, _
	withClause As ICriterion _
) As IQueryOver(Of TRoot, TSubType)
Visual C++
generic<typename U>
IQueryOver<TRoot, TSubType>^ JoinAlias(
	Expression<Func<U>^>^ path, 
	Expression<Func<U>^>^ alias, 
	JoinType joinType, 
	ICriterion^ withClause
)

Parameters

path
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'U>)>)>>)>)>
Lambda expression returning association path
alias
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'U>)>)>>)>)>
Lambda expression returning alias reference
joinType
Type: NHibernate.SqlCommand..::..JoinType
Type of join
withClause
Type: NHibernate.Criterion..::..ICriterion
Additional criterion for the SQL on clause

Type Parameters

U

[Missing <typeparam name="U"/> documentation for "M:NHibernate.IQueryOver`2.JoinAlias``1(System.Linq.Expressions.Expression{System.Func{``0}},System.Linq.Expressions.Expression{System.Func{``0}},NHibernate.SqlCommand.JoinType,NHibernate.Criterion.ICriterion)"]

Return Value

criteria instance

See Also