Add restriction to a property

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

Syntax

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

Parameters

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

Return Value

criteria instance

See Also