Search code examples
entity-frameworkdtowcf-web-api

DTOs in a WCF Web Api project


Ive been reading on some best practices for exposing Data over WCF Web Api and in many places it seems to be recommended not to use Domain Entities to expose your data but to use DTO for this.

What I cant find is a sample on the web on how to approach doing this.

Where can I find some documentation/samples on this?

whats your take on this approach?

Please help.


Solution

  • I like Samuel Meachan's approach.