Select from following answers:- Call the Attach method on the EntitySet or ObjectContext.
- Create the Customer using its new operator.
- Add the Customer to the related entity collection and Create the Customer using the CreateObject method.

- All Above
You must use the CreateObject method to create the entity. Creating the entity with this method ensures that the proxy is created.
Add the Customer directly to the entity collection. Use of the proxy will ensure that the insertion is detected when you call SaveChanges.
If you use the new operator the POCO proxy will not be created. The POCO proxy is needed to ensure that the new entity is tracked for insertion when you call SaveChanges.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator