Identical semantics to AndRestrictionOn() to allow more readable queries

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

Syntax

C#
IQueryOverRestrictionBuilder<TRoot, TSubType> WhereRestrictionOn(
	Expression<Func<TSubType, Object>> expression
)
Visual Basic
Function WhereRestrictionOn ( _
	expression As Expression(Of Func(Of TSubType, Object)) _
) As IQueryOverRestrictionBuilder(Of TRoot, TSubType)
Visual C++
IQueryOverRestrictionBuilder<TRoot, TSubType>^ WhereRestrictionOn(
	Expression<Func<TSubType, Object^>^>^ expression
)

Parameters

expression
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'TSubType, Object>)>)>>)>)>
Lambda expression

Return Value

criteria instance

See Also