In this chapter, we are going to examine the data context and the creation of models, as well as look in a bit more detail about how these objects work in concert for code-first database programming with Entity Framework.
By the end of the chapter, we’ll have reviewed and become even more familiar with some of the inner workings of the database context. Through practical examples, we’ll also become very familiar with using models to build out our database tables.
What is the database context, and why do we need it?
Taking a quick step back, if you are reading this and you are used ...