CHAPTER 12

image

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 that you can do to make your code more uniform by pushing concerns about things like business rule enforcement out of 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 executable anytime SaveChanges() is called within your application. This recipe and a few others are particularly useful if you want ...

Get Entity Framework 6 Recipes, Second Edition 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.