winforms - Linq to SQL: getting old values of changed rows -


I have an editable grid that is limited to the Linq from the SQL table. I submit changes to save the changes And I need a way to get the old values ​​of changed rows. I tried to get references. GetChangeSet () But the problem is that the rows in this collection do not send new values ​​to old people, even before calling the SubmitChanges (). How can I do this?

L2S cache will contain old values. Even when you call SubmitChanges (). I found this out the hard way. As long as you do not make a reference call, the cache will include the old values. Refresh all the lines to refresh () So, you can just retrieve the values ​​again L2S will get them from the cache, which will be old values.

Randy


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -