O'Reilly logo

Entity Framework 4.0 Recipes: A Problem-Solution Approach by Larry Tenny, Zeeshan Hirani

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required