This worked with the old Linq provider, no dice on the new one.

Basically trying to use my own IEqualityComparer

Here's what I'm doing:

//Some in memory list of items
List<Item> itemList = new List<Item>(){ new Item(1), new Item(2), new
Item(3) };

var result = (from subI in _session.Query<SubItem>()
   where itemList.Contains(subI.itemLink, new ItemEqualityComparer())
   select subI).ToList<SubItem>();

This gives me the error:
NotSupportedException
Boolean Contains[Model.Item]
(System.Collections.Generic.IEnumerable`1[Model.Item], Model.Item,
System.Collections.Generic.IEqualityComparer` 1 [Model.Item]

-- 
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