O'Reilly logo

Fluent Entity Framework by Rebecca M. Riordan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required