In this recipe, we will cover how to implement a soft delete solution with the Entity Framework, leveraging an open source library of interceptors.
We will be using the
NuGet Package Manager to install the Entity Framework 4.2 assemblies, and the Entity Framework Interceptors assemblies.
The package installer can be found at http://nuget.codeplex.com/.
We will also be using a database for connecting to the data and updating it.
We then the following command:
Open the Improving Soft Delete solution in the included source code examples.