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

14. Creating Data Relationships

Adam Freeman1 
(1)
London, UK
 

The foundation of Entity Framework Core is the way that it represents instances of .NET classes as rows in a relational database table. When you create relationships between classes, Entity Framework Core responds by creating corresponding relationships in the database. For the most part, the process of creating data relationships is intuitive and natural, although there are many options and some advanced features present pitfalls for the unwary.

In this chapter, I demonstrate how to create relationships between classes in the data model, show you how Entity Framework ...

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.