PreserveChanges issue

2 posts, 0 answers
  1. Jin
    Jin avatar
    80 posts
    Member since:
    Jun 2012

    Posted 23 Aug 2012 Link to this post

    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?

  2. Ady
    Admin
    Ady avatar
    589 posts

    Posted 28 Aug 2012 Link to this post

    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!
Back to Top