Hi, I would like to implement an ICriteria query for non-string object attributes. Usually I am using:
crit.Add(Expression.Like(searchField, "%" + searchString.ToLower() + "%")); where searchField is the name of the object's attribute. Unfortunately, this does not work if the attribute is, for example, an integer. Is there an easy way to achieve this? I could use: crit.Add( Expression.Sql( SqlString( ... ??? but this seems a bit cumbersome. Looking forward to hearing from you. Thanks. Best wishes, Christian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
