In this recipe, we will decouple the query and entity definitions from the database communication to illustrate how they can be leveraged separately.
We will be using the NuGet package manager to install the Entity Framework 4.1 assemblies.
The package installer can be found at http://nuget.org.
We will also be using a database for connecting to and updating data.
Open the Improving Entity and Library Reuse solution in the included source code examples.
Carry out the following steps in order to accomplish this recipe.
QueryTeststo the test project. We will make a test that connects to the database and retrieves a couple of records with a reusable ...