Hi Denis, first, please take this question to the users list: http://groups.google.com/group/nhusers/
and please add the whole code snippet (definition of searchGroups!), exception message and stack trace. BTW, you can drop the Select(r=>r), it's a no-op. Stefan > -----Original Message----- > From: [email protected] [mailto:nhibernate- > [email protected]] On Behalf Of DennisR > Sent: Tuesday, July 20, 2010 11:53 AM > To: nhibernate-development > Subject: [nhibernate-development] Nhibernate Linq 3 In Clause > > It seems that a In clause is not working properly with Linq 3.0 > (trunk) > > I tried following: var l = session.Query.Where(p => > searchGroups.Contains(p.ID)).Select(r=>r); > > I get an exception that says that the Binary operator for > \"System.Collections.Generic.ICollection`1[System.Int32]\" and > \"System.Int32 is not defined > > With Linq 1.0 it works properly > > var l = session.Linq.Where(p => > searchGroups.Contains(p.ID)).Select(r=>r); > > Should I use something different with the new Linq version or is it > just a bug?
