Creating own query

Posts   
 
    
gabrielk avatar
gabrielk
User
Posts: 231
Joined: 01-Feb-2005
# Posted on: 08-Aug-2005 12:40:18   

Hi,

I guess this most be covered in either or both the help and this forum. But I couldn't find it in both of them.

I would like to make a custom query and put the output in a CollectionEnitity for the table which the data is retreived from.

Query like: SELECT * FROM contacts WHERE lastname LIKE 'gates'

Since I couldn't find the LIKE in de CompareOperator i have to make it myself,

Please let me know (2 class scenario),

Gaab

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 08-Aug-2005 13:02:31   

Use the PredicateFactory.Like() method to create a Like predicate simple_smile (or the FieldLikePredicate class. Please see Filtering and sorting in the documentation).

Frans Bouma | Lead developer LLBLGen Pro