views:

111

answers:

1

Is there a simple way to compare two EntityObjects for value-equality. I simply want to check if all the database-values are the same, so I don't care if the EntityKey is different.

Is this possible built-in? Or should I just write my own method.

I guess Equals() doesn't work as I want it here?

A: 

Equals() checks for referential equality, so it wouldn't help you there.

Take a look at this question: http://stackoverflow.com/questions/1092534/what-is-the-best-way-to-compare-two-entity-framework-entities

Dave Swersky