In this chapter, we have used Service Factory to create the framework of a three-layer WCF service. We used Service Factory to model the data contracts, service contracts, and we then generated code from these models. We are not only writing less source code manually, but we are also incorporating lots of best practices into our service. This version's service is in much better shape than the previous one.
The key points covered in this chapter include:
Guidance Packages and Service Factory are required to model the contracts
Data contracts, including fault contracts, are modeled before service contracts and data contract models will be used by the service contract models
Connectors are used to connect the service contracts with the operation contracts, and the message contracts
Implementation technologies are not specified for the contracts in the models, until the source code is about to be generated
Service Factory will only generate source code for the service interface projects, and not for the business logic project, the business entities project, or the data access project