Chapter 12. Customizing Entity Framework Objects

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 ...

Get Entity Framework 4.0 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.