Home  /  Questions  /  Question

108   96.7
Jun 11, 2012

Can I remove DTOs from WCF?

Question about the Patterns in Action application.

If I am using this within a project and will not ever use WCF can I eliminate a lot of this?
For example can I remove "ServiceContract", "OperationContract", "DataMember", and "DataContract" annotations from IActionService and Messages?
Also, can I remove the Request/Response? 
Can I also remove the DataTransferObjects (DTOs) from the service layer as well?


377   99.9
Jun 14, 2012
Yes you can remove them in non WCF project.