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

MergeOption

1 Answer 58 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrick
Top achievements
Rank 2
Patrick asked on 26 Mar 2013, 07:01 PM
Hi,

Do you know how I can set the MergeOption on an Entity? I want to set the merge option to OverwriteChanges.

Thanks,

1 Answer, 1 is accepted

Sort by
0
Ralph Waldenmaier
Telerik team
answered on 27 Mar 2013, 04:15 PM
Hello Patrick,

You can refresh objects from the database and define how to refresh them. You can use 'PreseveChanges' where your changes will be kept but the object is refreshed. Or you can specify 'OverwriteChangesFromStore' which means that the passed object should be updated to match the data source values.
You can find more details here. See the region 'Refreshing Objects'.

I hope this information is helpful for you.
Do come back in case you need further assistance.

All the best,
Ralph
the Telerik team
Free Webinar: OpenAccess Integration in Sitefinity. SIGN UP NOW.
Tags
Databases and Data Types
Asked by
Patrick
Top achievements
Rank 2
Answers by
Ralph Waldenmaier
Telerik team
Share this question
or