In this recipe, we will be composing queries out of reusable chunks into larger business specific queries.
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 Complex Where Clauses solution in the included source code examples.
Carry out the following steps in order to accomplish this recipe.
whereclauses, which needs to be abstracted. Use the following code:
using System; using System.Collections.Generic; using System.Linq; using BusinessLogic; ...