Comparing Entity Collections

Posts   
 
    
BSAPD avatar
BSAPD
User
Posts: 42
Joined: 02-Jul-2004
# Posted on: 18-Nov-2004 00:54:51   

Is there a built in way to compare two entity collections? I am looking to see if the entity's in collection a are the same as the entities in collection b. Of course I can loop through and check myself, but it would be nice if EntityCollection overrode Equals and and checked for me.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 18-Nov-2004 10:09:40   

No, however entities have Equals overridden, which check the PK values. So you can do entityFromA.Equals(entityFromB), which can be handy if the PK is a compound PK.

Frans Bouma | Lead developer LLBLGen Pro