This is a migrated thread and some comments may be shown as answers.

PreserveChanges issue

1 Answer 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jin
Top achievements
Rank 1
Jin asked on 24 Aug 2012, 02:14 AM
In your online help, " The PreserveChanges value means that the actual changes in the object will be kept but all clean data will be re-read.  ", My concern is that whether there is a way to re-read all data include those actual changes?

1 Answer, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 28 Aug 2012, 03:00 PM
Hi Jin,

The 'RefreshMode' enum has two values - 'PreserveChanges' and 'OverwriteChangesFromStore'.

The 'OverwriteChangesFromStore' will re-read all data while refereshing; all dirty fields will be re-read and all changes will be lost and the object will be marked as clean. If I understand you right, this is what you want to achieve.

Do get back in case you need further assistance.

Regards,
Ady
the Telerik team
Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Tags
General Discussions
Asked by
Jin
Top achievements
Rank 1
Answers by
Ady
Telerik team
Share this question
or