You are implementing a method named DeleteProduct. This method first retrieves an Entity Framework-generated entity with a given key. You need to add code to ensure that the Product entity is deleted from the data source when you call the ObjectContext's SaveChanges method.

What should you do?

 Posted by Rajkatie on 9/20/2012 | Category: ADO.NET Interview questions | Views: 1163 | Points: 40
Select from following answers:
  1. Call the Product ObjectSet's DeleteObject method.
  2. Call the ObjectContext's Detach method.
  3. Call the ObjectContext's Refresh method. Set the RefreshMode to ClientWins.
  4. All Above

Show Correct Answer

Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response