You work as Web Developer in PassGuide.com. The company uses Microsoft .NET Framework 4
as its application development platform. You want to invoke custom business logic during changes
to properties of data classes generated by the Entity Data Model tools. Which of the following
events can you use to invoke custom business logic in generated data classes?
Each correct answer represents a complete solution. Choose two.
A.
AssociationChanged
B.
ObjectMaterialized
C.
SavingChanges
D.
ObjectStateManagerChanged
Explanation:
http://romiller.com/2009/06/28/entity-framework-events/
SavingChanges event is raised prior to writing data out to the database once SaveChanges() is called.
AssociationChanged event gets raised whenever EF becomes aware that an object has been added or removed from a navigation property.