I have an IQueryable
custs, a Customer
cust, a CustomerComparer
custCp which implements IEqualityComparer
.
When I call custs.Contains(cust, custCp)
I get an exception:
System.NotSupportedException: Unsupported overload used for query operator 'Contains'
But when I call custs.AsEnumerable().Contains(cust,custCp)
it works. Can anyone explain why?