Select from following answers:- Call the Product ObjectSet's DeleteObject method.

- Call the ObjectContext's Detach method.
- Call the ObjectContext's Refresh method. Set the RefreshMode to ClientWins.
- All Above
Calling the DeleteObject method on the ObjectSet or DeleteObject method on ObjectContext marks the specified object for deletion. The row is not deleted from the data source until after SaveChanges is called.
The ObjectSet's Detach method removes the object from the ObjectStateManager. This disables change tracking and identity resolution for that object. It does not mark the object for deletion when SaveChanges is called.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator