Entity Framework - Self Tracking Objects - how to reset client side?

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2011-01-02T20:48:35Z Indexed on 2011/01/02 20:54 UTC
Read the original article Hit count: 214

Filed under:
|

I am using wcf with self tracking entity framework objects.

On the client side i have bound an entity to an edit form (which has multiple textboxes and comboboxes).

After the user hits Save, the entity is sent through wcf to the server wcf service which will attempt to save the entity. If there is a failure (say a network failure), I need to reset the current entity back to original values.

How best can I do this client side? (I recognize with Self Tracking objects there is a property OriginalValues however that collection seems to have count=0) so not sure how to get the original values?

Thanks-

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about entity