Your database includes a stored procedure named DeletePersonByID. You use the Entity Designer to add this stored procedure as a LINQ to SQL DataContext method. You need to ensure that the DataContext uses this stored procedure to delete a Person row when the SubmitChanges method is called after the corresponding Person entity is marked for deletion.
What should you do?

 Posted by Rajkatie on 8/28/2012 | Category: ADO.NET Interview questions | Views: 2289 | Points: 40
Select from following answers:
  1. Configure the DataLoadOptions instance related to the DataContext.
  2. Using the Entity Designer, select the DeletePersonByID stored procedure and configure the return type to the Person entity class.
  3. Using the Entity Designer, select the Person entity class and configure the Delete command to use the DeletePersonByID stored procedure.
  4. All Above

Show Correct Answer


Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response