Back to list
Views:   0
Replies:  0
Archived
,
Reply 1
Hi, Dennis.

DTO's are for sending data across layers and is independent of WCF. They're great in cases where you need to add more data members, as your interface is not broken and, assuming you're employing versioning, can access the new members in your updated methods.

Mike
Michael Lopez, Aug 04, 2012
Reply 2

The Dto, for me at least, helps to enforce separation of concerns and in my view are used to

Passing Data between layers using serializable objects - helps with scaling if required later

Stopping business objects being passed from the service layer to the presentation layer

William Jones, Jul 26, 2012
Reply 3
Hi,

Data Transfer Object or DTO's are mainly used for sending information from one layer to another layer. It doesn't have any relation with WCF services.

Also, I have seen people uses DTO's in two ways:
  1. Keep common class for each layers and pass the information.
  2. Keep separate class for each layers and hide the information wherever you need.

Both approaches has its pros and cons. It totally depends on your choice what you need.

Vishal Shah, Jun 18, 2012
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas