Now that we have learned all of the features related to LINQ and LINQ to Entities, we will use them in the data access layer of a WCF service. We will create a new WCF service very similar to the one we created in the previous chapters, but in this service, we will use LINQ to Entities to connect to the Northwind
database to retrieve and update a product.
In this chapter, we will cover the following topics:
Creating a test solution
Modeling the
Northwind
database in the LINQ to Entities designerAdding the business domain object project
Implementing the data access layer using LINQ to Entities
Adding the business logic layer
Adding the service interface layer
Implementing the test client
Testing the get and update operations of the WCF service
Testing concurrent updates with LINQ to Entities