How are update conflicts resolved when multiple client save? RRS feed

  • Question

  • Imagine I have a Person entity exposed from a WCF Data Service. Client A and Client B both query for and edit the same Person entity on their own machines by altering the FirstName property. They both press Save and try to update the WCF Data Service. How does WCF Data Services handle this scenario? I assume the first Save operation from Client A completes with success. Does the second Save from Client B just overwrite the change from Client A? Or does it fail and throw an exception because there is a conflict? Is there anyway to hook into this conflict resolution to customize it?

    Wednesday, May 30, 2012 1:36 AM