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