You need to ensure that the application can add new Customer entities. What should you do?
A. Add a handler for the ObjectContext.SavingChanges event. In the event handler, set the CustomerKey value.
B. Add a handler for the ObjectContext.ObjectMaterialized event. In the event handler, set the CustomerKey value.
C. Call the ObjectContext.Attach method before saving a Customer entity.
D. Call the ObjectContext.CreateEntityKey method before saving a Customer entity.
Answer:A
You need to ensure that the application can add new Customer entities. What should you do?
A. Add a handler for the ObjectContext.SavingChanges event. In the event handler, set the CustomerKey value. B. Add a handler for the ObjectContext.ObjectMaterialized event. In the event handler, set the CustomerKey value. C. Call the ObjectContext.Attach method before saving a Customer entity. D. Call the ObjectContext.CreateEntityKey method before saving a Customer entity.