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

Task list

Image

In this chapter we’ll explore two of the methods Entity Framework provides to control the schema it creates when you use the Code First workflow.

Data annotations

Image

Although the conventional approach to the Code-First Workflow works quite well, there are almost certainly going to be times when you need to give Entity Framework a little more information. One way to do this is to use DATA ANNOTATIONS, and we’ll start the chapter by exploring how all that works.

The fluent API

If you prefer not to clutter up your classes with information ...

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