Introduction
In this chapter, we will be looking at how we can make Entity Framework validate our entities for us. Of course, we don't want to be inserting bad data into the database, and Entity Framework can help us with that by intercepting data before it is sent to the database.
After that, we will see how we can manipulate the state of entities being tracked, how we can intercept changes being made to them, and use custom SQL to retrieve, update, and delete entities.
At the very end of the chapter, we will have a look at the migrations functionality that allows us to evolve our model and have the database reflect those changes.