You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 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 columns 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 updated
function without requiring changes in the code. What should you do?
A.
Override the Delete operation of the DataContext object.
B.
Override the Update operation of the DataContext object.
C.
Modify the SELECT SQL statement provided to the DataContext object to use an INNER JOIN
between the Customer and Orders tables.
D.
Add new entities to the DataContext object for the Customers and Orders tables.