Select from following answers:- Call the Add method on Supplier entities Products EntityCollection.

- Call the Products ObjectSet's Attach method.
- Call the ObjectContext's AcceptAllChanges method.
- All Above
To add EntityFramework-generated entities, call the Add method on EntityCollection. For Entity Framework -generated entities and POCO proxy objects, added entities are attached to the context when the principal object is attached.
Call the ObjectContext's Attach method to add a detached object to the ObjectContext and set the object to the Unchanged state. In the Unchanged state, the Entity Framework treats the entity key values as final. The attached entity will not have the Added state and the object will not be inserted when SaveChanges is called.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator