Configuring One-to-Many Relationships

Learn how to configure a one-to-many relationship using default conventions, data annotations, and fluent API.

Overview

In this lesson, we review the conventions between two entities that automatically result in a one-to-many relationship between their corresponding tables in the database. Later we’ll see how to supplement these conventions using data annotations and the fluent API.

Get hands-on with 1200+ tech skills courses.