Use Expression.Not() (or Restrictions.Not()) around your Expression.In.

/Roger

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Waqar Sadiq
Sent: den 11 januari 2010 16:04
To: nhusers
Subject: [nhusers] NotIn

Hello,

I am looking for an equivalent of SQL "not in" in the criteria API but did not 
see any.  I am trying to do opposite of Expression.In.  In this case, I have a 
set of values of a property that I would like to exclude from a query.

Can naybody provide some guidance.

thanks.

Waqar
-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.


Reply via email to