© Adam Freeman 2018
Adam FreemanPro Entity Framework Core 2 for ASP.NET Core MVChttps://doi.org/10.1007/978-1-4842-3435-8_16

16. Working with Relationship Part 2

Adam Freeman1 
(1)
London, UK
 
The one-to-many relationships that I described in Chapter 15 are not the only types of relationship that Entity Framework Core supports. In this chapter, I show you how to define one-to-one and many-to-many relationships, demonstrate how to query for related data when using these relationships, and explain how to manage these relationships in the database. Table 16-1 summarizes the chapter.
Table 16-1.

Chapter Summary

Problem

Solution

Listing

Define a completed one-to-one relationship

Add reciprocal navigation properties and add a foreign key property to the dependent ...

Get Pro Entity Framework Core 2 for ASP.NET Core MVC 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.