Chapter 17: Introduction to Object-Relational Mapping
Major Concepts
By the end of this chapter, you should understand:
- What object-relational mapping is and why developers use it.
- How to connect an ASP.NET Core MVC application to a MySQL database.
- How to create a new migration and update the database.
- How to create a
DbContext
and why developer use it.
Key Terminology
Object-Relational Mapping
- Object-Relational Mapping (ORM)
- object-relational mapper
- Entity Framework Core
- Data Layers
- Environment Variables
Accessing Data
- Data Store
- In-Memory Data Store
- Persistent Data Store
DbContext
- Database Migration
Working With Data Stores
- Dependency Injection
- Transient Objects