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:
Create a new directory named
DistNorthwind
under the existingC:\SOAwithWCFandEF\Projects\
directory.Copy all the files under the
C:\SOAwithWCFandEF\Projects\LINQNorthwind
directory to theC:\SOAwithWCFandEF\Projects\DistNorthwind
directory.Remove the
LINQNorthwindClient
folder. We will create a new client for this solution.Change the solution file's name from
LINQNorthwind.sln
toDistNorthwind.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...