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 solutions

So far all of our little example applications have consisted of a single project. Of course, that’s not the way most applications are built, and one of the things that the Code-First Workflow simplifies is n-tier development. You would typically include (at least) three projects in your application:

The data model project

Image

When you use the Code-First Workflow, your data model—the classes that represent the entities themselves—are just classes. Among other things, that makes testing easier because with the exception of data annotations (and you don’t necessarily need those, as we’ll see), they have nothing to do with the Entity ...

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