Microsoft
70-516 · Question #267
70-516 Question #267: Real Exam Question with Answer & Explanation
Sign in or unlock 70-516 to reveal the answer and full explanation for question #267. The question stem and answer options stay visible for context.
Question
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application that uses the Entity Framework. You create the following Entity Data Model. You write the following code. (Line numbers are included for reference only.) 01 Using context As New Model1Container() 02 Dim cust As Customer = context.Customers.First() 03 cust.CompanyName = "Contoso" 04 Dim count As Integer = 0 06 End Using The changes to the cust entity must be saved. If an exception is thrown, the application must retry the save 3 times. You need to add a code segment to meet the requirements. Which code segment should you insert at line 05?
Options
- AWhile (count < 3)
- BWhile (cust.EntityState = EntityState.Modified) Try
- CWhile (True)
- DWhile (context.ObjectStateManager.GetObjectStateEntry( _
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.