The first thing we need to do is create a test solution. In this chapter, we will start from the data access layer. Perform the following steps:
Start Visual Studio.
Create a new class library project,
NorthwindDAL
, with solution nameLINQNorthwind
(make sure that the Create directory for solution option is checked to specify the solution name).Change the
Class1.cs
file toProductDAO.cs
. This will also change the class name and all related places in the project.
Now, you should have a new solution with the empty data access layer class. Next, we will add a model to this layer and create the business logic layer and the service interface layer.