nerdexam
Microsoft

70-516 · Question #114

70-516 Question #114: Real Exam Question with Answer & Explanation

Sign in or unlock 70-516 to reveal the answer and full explanation for question #114. The question stem and answer options stay visible for context.

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. You use the ADO.NET Entity Framework to model entities. You write the following code segment. (Line numbers are included for reference only.) 01 AdventureWorksEntities context = new 02 ... 03 var q = from c in context.Customers 04 where c.City == "London" 05 orderby c.CompanyName 06 select c; You need to ensure that the application meets the following requirements: - Compares the current values of unmodified properties with values returned from the data source. - Marks the property as modified when the properties are not the same. Which code segment should you insert at line 02?

Options

  • Acontext.MergeOption = MergeOption.AppendOnly;
  • Bcontext.MergeOption = MergeOption.PreserveChanges;
  • Ccontext.MergeOption = MergeOption.OverwriteChanges;
  • Dcontext.MergeOption = MergeOption.NoTracking;

Unlock 70-516 to see the answer

You've previewed enough free 70-516 questions. Unlock 70-516 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-516 Practice