The recipes in this chapter explore some of the customizations that can be applied to objects and to the processes in Entity Framework. These recipes cover many of the "behind the scenes" things you can do to make your code more uniform by pushing concerns about things like business rule enforcement from the details of your application to a central, application-wide implementation.
We start off this chapter with a recipe that shows you how to have your own code execute anytime
SaveChanges() is called in your application. This recipe and a few others are particularly useful if you want to enforce business rules from a single spot in your application.
In other recipes, we show you how to track database ...