Have you tried this criteria.Where(!Restrictions.On<Listing>(l => l.Id).IsIn(ClickedItems));
On Fri, Jul 16, 2010 at 1:59 PM, Cristian Prieto <[email protected]>wrote: > Hi pals, > > I've been playing a little with new QueryOver with NH trunk, I really love > it... But after reading and searching a little in internet I could not find > how to do a "Not In" query using QueryOver and turns this into a negative > query: > > Snippet > > SnippetISession session = Factory.GetCurrentSession(); > IQueryOver<Listing, Listing> criteria = session.QueryOver<Listing>(); > > > criteria.Where(Restrictions.On<Listing>(l => l.Id).IsIn(ClickedItems)); > > I mean, *IsIn* must become a *IsNotIn*... > > Thanks a lot for your help! > > -- Cristian > > -- > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > -- Fabio Maulo -- 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.
