Adding a business logic layer

Until now the WCF service has contained only one layer. In this section, we will add a business logic layer and define some business rules in this layer.

Adding the business domain object project

Before we add the business logic layer, we need to add a project for the business domain objects. The business domain object project will hold definitions such as products, customers, and orders. These domain objects will be used across the business logic layer, the data access layer, and the service layer. They will be very similar to the data contracts we defined in the previous section, but will not be seen outside of the service. The product business domain object will have the same properties as the product contract data, ...

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.