MCQOPTIONS
Saved Bookmarks
| 1. |
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application uses the ADO.NET Entity Framework to model entities. The application allows users to make changes to entities while disconnected from the central data store._x005F_x000D_  _x005F_x000D_ You need to ensure that when the user connects to the central data store and retrieves new data, the application meets the following requirements:_x005F_x000D_ _x005F_x000D_ Changes made to the local data store in disconnected mode are preserved._x005F_x000D_ Entities that have already been loaded into the local data store, but have not been modified by the user, are updated with the latest data._x005F_x000D_ _x005F_x000D_ What should you do? |
| A. | Call the query's Execute method by using the MergeOptions.AppendOnly option. |
| B. | Call the query's Execute method by using the MergeOptions.OverwriteChanges option. |
| C. | Call the Refresh method of ObjectContext by using the RefreshMode.StoreWins option. |
| D. | Call the Refresh method of ObjectContext by using the RefreshMode.ClientWins method. |
| Answer» E. | |