Code first relationships

The sample Code First application we built at the beginning of the chapter had a single mandatory one-to-many relationship, and Code First conventions handle that easily. But in two situations Entity Framework requires a little assistance: one-to-one relationships, and multiple relationships between tables.

Image

Get Fluent Entity Framework 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.