In this recipe, we are going to take a look at what it takes to use some basic ADO.NET skills to make an old school data-access layer. We will continue with our repository and IoC concepts and shoehorn some inline SQL into our application.
As with all the other recipes in this chapter, start by copying the previous recipes code base. This will give you the core application that we created in the first recipe. From there we will build a new repository that uses ADO.NET to access the underlying data.
Models/Repositoryand add a new folder called