Compareable entity

Posts   
 
    
chungpn
User
Posts: 39
Joined: 23-Mar-2011
# Posted on: 18-May-2011 05:43:02   

Does LLBLGEN support compare between Entity and Sort base on Field between EntityCollection? Thank you.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 18-May-2011 10:34:06   

The question is not clear. Please re-phrase it, and try to supply more details.

chungpn
User
Posts: 39
Joined: 23-Mar-2011
# Posted on: 18-May-2011 11:45:48   

for example, I have this code: CustomerEntity cus1= new CustomerEntity("BAC"); CustomerEntity cus2= new CustomerEntity("CDF"); Now compare between cus1 and cus2.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 18-May-2011 12:32:21   

So you want to compare between them as such if they are different entities, then they are not equal, and if they are the same entity, then they are equal?

i.e. using the PK.

Or do you want to perform the comparison based on other field values?

Perhaps it's not a matter of equal or not, maybe which is greater than the other....etc.