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

One-to-one relationships

Let’s start with the simplest of the two situations: modelling a one-to-one relationship between the classes.

This is the schema we want to create.

Image

And here are the classes we’ll need to do it.

Image

Image Put On Your Thinking Hat

Ready to give it a try?

Image

Create a console project (I called my project CFAnnotations), add the NuGet ...

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