Relationships in Entity Framework Core

Overview

In EF Core, relationships define how two entities relate and how the database reflects the relationship. When dealing with relational databases, EF Core uses foreign keys to establish the relationships between entities. This lesson introduces the concepts surrounding the relationship between entities.

The code sample below illustrates some concepts regarding relationships in EF Core:

Get hands-on with 1200+ tech skills courses.