You are implementing a method that uses Entity Framework-generated entities. This method creates a new Product entity. You need to associate the Product with a parent Supplier entity and ensure that the Product entity is inserted when you call the ObjectContext's SaveChanges method to persist changes.

What should you do?

 Posted by Rajkatie on 9/14/2012 | Category: ADO.NET Interview questions | Views: 2692 | Points: 40
Select from following answers:
  1. Call the Add method on Supplier entities Products EntityCollection.
  2. Call the Products ObjectSet's Attach method.
  3. Call the ObjectContext's AcceptAllChanges method.
  4. All Above

Show Correct Answer

Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response