Type cast in PredicateExpression

Posts   
 
    
mano44
User
Posts: 3
Joined: 03-Dec-2010
# Posted on: 03-Dec-2010 21:16:02   

Hi,

I need to type cast from string to double in my PredicateExpression. here's the code:

string[] textPromptRange = textPrompt.Split('-'); PredicateExpression.Add(ProductSingleAttributeMappingFields.ProductAttributeId == idAttribute); PredicateExpression.AddWithAnd(ProductSingleAttributeMappingFields.TextPrompt >= double.Parse(textPromptRange[0]));

actually it makes the compare as a string. I know it is a string in the database, but this is a generic field and it can be use as a double.

How can I make the the expression compare double??

thanks!

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 04-Dec-2010 08:38:40   
David Elizondo | LLBLGen Support Team