cancel update in datacontext = LInq

Posted by Garcia Julien on Stack Overflow See other posts from Stack Overflow or by Garcia Julien
Published on 2010-04-01T07:30:23Z Indexed on 2010/04/01 7:33 UTC
Read the original article Hit count: 532

Filed under:
|
|
|
|

Hi, I would like to know if its possible to discard changes of only one record of only one table in datacontext.

I use databind to bind my controls on a form. I modify one record at a time. after the modification, the user have to hit save button to validate. But he can hit cancel. I would like that the cancel button discard all the changes that the user has done. Is it possible?

Ju

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about linq-to-sql