Add negation of criterion expressed as a lambda expression

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

Syntax

C#
IQueryOver<TRoot, TSubType> AndNot(
	Expression<Func<bool>> expression
)
Visual Basic
Function AndNot ( _
	expression As Expression(Of Func(Of Boolean)) _
) As IQueryOver(Of TRoot, TSubType)
Visual C++
IQueryOver<TRoot, TSubType>^ AndNot(
	Expression<Func<bool>^>^ expression
)

Parameters

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

Return Value

criteria instance

See Also