FieldCompareRangePredicate

Posts   
 
    
paulshealy
User
Posts: 22
Joined: 13-Jun-2005
# Posted on: 11-Jul-2006 20:44:04   

I'm using SelfServicing code w/ v2.0 and I'm trying to create predicates like this:


ICollection values 
...
entityCollection.GetMulti (ProcedureFields.ID == values);

but this fails with an exception: Object must implement IConvertible. The reason is that the predicate returned from the == is a FieldCompareValuePredicate, not a FieldCompareRangePredicate. If I declare values to be int[] or ArrayList, the code works correctly. Using IList does not work. Is there a way to use the == operator with one of the common interfaces?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 11-Jul-2006 22:01:42   

Use arraylist or array for the values, the code checks for these types.

Frans Bouma | Lead developer LLBLGen Pro