views:

64

answers:

1

Say I have a L2S Update and I would like to display what changed to the user. Where does GetChangeSet() get populated? Immediately after I assign values or after context.SubmitChanges()?

If the second; I could, theoretically, change the return type to IList and then return return context.GetChangeSet().Updates;?

+1  A: 

AFAIK it's before you call submit changes; submit changes uses the GetChangeSet information to determine what SQL to generate etc.

Isaac Abraham