Microsoft
70-516 · Question #14
70-516 Question #14: Real Exam Question with Answer & Explanation
Sign in or unlock 70-516 to reveal the answer and full explanation for question #14. 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. The application connects to a Microsoft SQL Server 2008 database. The application uses DataContexts to query the database. You create a function that meets the following requirements: - Updates the Customer table on the database when a customer is marked as deleted. - Updates the related entries in other tables (CustomerAddress, CustomerContacts) by marking them as deleted. - Prevents consumer code from setting the Deleted column's value directly. You need to ensure that the function verifies that customers have no outstanding orders before they are marked as deleted. You also need to ensure that existing applications can use the update function without requiring changes in the code. What should you do?
Options
- AOverride the Delete operation of the DataContext object.
- BOverride the Update operation of the DataContext object.
- CModify the SELECT SQL statement provided to the DataContext object to use an INNER
- DAdd new entities to the DataContext object for the Customers and Orders tables.
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.