Microsoft Exam Questions

How can you change emp_fn without changing the rest of PassGuideApp (that is using emp_fn)?

DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp connects to a MS SQL Server 2008 database PassGuideDB.
PassGuideApp uses Data Contexts to access data from the database.
There a function emp_fn that updates the employees table when an employee is marked as
deleted, updates related entries in the Employee_Details table by marking them as deleted,
and prevents employee code to directly update the deleted field.
Now you need to improve emp_fn by checking that there are no Emplyee_details entries for
an employee before it is marked as deleted.
How can you change emp_fn without changing the rest of PassGuideApp (that is using emp_fn)?

Answer:

Explanation: