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 ...

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.