G
Guest
I'm working with the new Beta 2 of VS2008 and LINQ is really great but i'm
searching for an opposite construct of the SubmitChanges() method to discard
changes. Background:
I have a form for editing a single data row and only if the user clicks the
OK button the changes are saved into the DB. That's no problem to call the
SubmitChanges() method on the DataContext. Otherwise the last saved state
should be restored. An DiscardChanges() method on the DataContext would be
nice, because LINQ tracks the changes made on the objects so not submit the
chages isn't the solution or have I overseen something?
Thanks.
searching for an opposite construct of the SubmitChanges() method to discard
changes. Background:
I have a form for editing a single data row and only if the user clicks the
OK button the changes are saved into the DB. That's no problem to call the
SubmitChanges() method on the DataContext. Otherwise the last saved state
should be restored. An DiscardChanges() method on the DataContext would be
nice, because LINQ tracks the changes made on the objects so not submit the
chages isn't the solution or have I overseen something?
Thanks.