© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
B. L. GormanPractical Entity Framework Core 6https://doi.org/10.1007/978-1-4842-7301-2_4

4. Models and the Data Context

Brian L. Gorman1  
(1)
Jesup, IA, USA
 

In this chapter, you 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, you will have reviewed and become even more familiar with some of the inner workings of the database context (DBContext). Through practical examples, you’ll also become very familiar with using models to build out your database tables.

Eventually, you will learn ...

Get Practical Entity Framework Core 6: Database Access for Enterprise Applications 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.