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

Creating the DistNorthwind solution


In this chapter, we will create a new solution based on the LINQNorthwind solution. We will copy all of the source code from the LINQNorthwind directory to a new directory and then customize it to suit our needs.

Follow these steps to create the new solution:

  1. Create a new directory named DistNorthwind under the existing C:\SOAwithWCFandEF\Projects\ directory.

  2. Copy all the files under the C:\SOAwithWCFandEF\Projects\LINQNorthwind directory to the C:\SOAwithWCFandEF\Projects\DistNorthwind directory.

  3. Remove the LINQNorthwindClient folder. We will create a new client for this solution.

  4. Change the solution file's name from LINQNorthwind.sln to DistNorthwind.sln.

Now, we have the file structures ready for the new solution. Here, we will reuse the old service to demonstrate how to enable transactions for the existing WCF service.

First, we need to make sure that this old service still works in the new solution, and we also need to make a small change to the service...