In this recipe, we start by separating the application into a user interface, a data access layer, and a business logic layer. This will allow us to keep our objects segregated from database-specific implementations. The objects and the implementation of the database context will be a layered approach so we can slot testing and abstraction into the application.
We will be using the NuGet Package Manager to install Entity Framework 4.1 assemblies.
The package installer can be found at http://www.nuget.org/. We will also be using a database in order to connect to the data and update it.
Open Using Code First Solution from the included source code examples.
Execute the database setup script ...