I have method that updates the properties of a class and then updates that object in the database using a web service. I want to verify that the update succeeded by pulling the new object and comparing it to an object in memory.
Do I need to compare each property or will this determine if they have the same values for all the properties?
var areEqual = objectThatHasChanges.Equals(objectSavedToDatabase);