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 5, Implementing a Three-layer WCF Service, so you can refer to this chapter for more details.
- Right-click on the solution item and select Add | New Project.... Add a WCF Service Library project with the name
NorthwindService
. - Add a project reference to
NorthwindLogic
andNorthwindBDO
to this new service interface project. - Right-click on the project item
NorthwindService
, select Manage NuGet Packages… and then install Entity Framework. - Change the service interface file,
IService1.cs
, as follows:- Change its filename from
IService1.cs
toIProductService.cs
. This will also change the interface name ...
- Change its filename from
Get WCF Multi-layer Services Development with Entity Framework Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.