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

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -