Filtering

Posts   
 
    
bmbeaulieu
User
Posts: 9
Joined: 12-Dec-2006
# Posted on: 29-Dec-2006 19:04:40   

This is silly.. but I can not figure out why the filtering expressions are failing to compile. I've used LLBLGen 1.x for projects but 2.0 is throwing me!

i'm using selfservicing.

Here's what i'd do for 1.x: IPredicateExpression A = new PredicateExpression(); A.Add(PredicateFactory.CompareValue(UserFieldIndex.UserId,ComparisonOperator.Equal,login));

What would the equivalent be for 2.0?

From what I can find in the help files, it'd be: filter.Add(UserFieldIndex.UserId == login);

That fails to compile.. doesn't like the '==' Error 1 Operator '==' cannot be applied to operands of type 'cdops.data.UserFieldIndex' and 'string'

I'm certain this is a no brainer but I'm missing the obvious..

Thanks!

Brian

bmbeaulieu
User
Posts: 9
Joined: 12-Dec-2006
# Posted on: 29-Dec-2006 20:35:33   

I think this is cleared up.. had to choose some things when generating the classes in the designer..