In this recipe, we will be setting up a management class that allows us to create and manage multiple contexts on a per thread basis.
We will be using
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 the data and updating it.
Open the Improving Parallel Context Management solution in the included source code examples.
using System.Threading; ...