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

6. Designer Options

In the last chapter you had a quick peek at adding a code generation item to an Entity Framework model in order to control, well, the code it generates. In this chapter we’ll look at this process in more detail. As you’ll see, Entity Framework provides templates for three common code strategies: entity objects (which you get by default, but using the template provides more control), the DbContext objects that we examined in the last chapter, and self-tracking entities, which are useful in n-tier applications (we’ll use them in the final project in Chapter 10).

These templates are provided by the Entity Framework team. (If you search the template gallery, you’ll find others that are provided by the team or by members of the ...

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