You ran a LINQ to SQL query to retrieve the products that you are going to mark as discontinued. After running the query, you looped through the returned products and set their Discontinued property to true.
What must you do to ensure that the changes go back to the database?

 Posted by Rajkatie on 8/22/2012 | Category: ADO.NET Interview questions | Views: 3722 | Points: 40
Select from following answers:
  1. Call the SubmitChanges method on the DataContext object.
  2. Call the Update method on the DataContext object.
  3. Nothing; the changes are sent when you modify the object.
  4. All Above

Show Correct Answer

Source: | | Alert Moderator 

Comments or Responses

Login to post response