views:

15

answers:

0

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?