Creating the service interface layer
The last step is to create the service interface layer. Again, the steps here are very similar to the steps in Chapter 4, Implementing a WCF Service in the Real World, so you can refer to that chapter for more details.
- Right-click on the solution item and select Add | New Project.... Add a WCF service library project with the name of
LINQNorthwindService
. - Add a project reference to
LINQNorthwindLogic
andLINQNorthwindBDO
to this new service interface project. - Change the service interface file
IService1.cs
, as follows:a. Change its filename from
IService1.cs
toIProductService.cs
.b. Change the interface name from
IService1
toIProductService
, if it is not done for you.c. Remove the original two service operations ...
Get WCF 4.5 Multi-Layer Services Development with Entity Framework now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.