Book Image

WCF Multi-layer Services Development with Entity Framework - Fourth Edition

By : Mike Liu
Book Image

WCF Multi-layer Services Development with Entity Framework - Fourth Edition

By: Mike Liu

Overview of this book

Table of Contents (20 chapters)
WCF Multi-layer Services Development with Entity Framework Fourth Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
2
Hosting the HelloWorld WCF Service
Index

Chapter 9. Applying LINQ to Entities to a WCF Service

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 designer

  • Adding 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