What is a 'better' approach to query/save from server: DTO or Wcf Data Services?

Posted by bonefisher on Stack Overflow See other posts from Stack Overflow or by bonefisher
Published on 2010-04-21T10:05:39Z Indexed on 2010/04/21 10:33 UTC
Read the original article Hit count: 219

From my perspective, the Data Services and their query approach is useful when querying simple object graphs from your server-side domain model. But when you want to query complex dependencies I couldn't create anything good out of it.

The classic DTO approach is fine-grained and can handle everything, but the downside is that you have to create Dto classes for every type of server-request which is time consuming and you have to synchronize the Dto type with your domain entity/business logic.

© Stack Overflow or respective owner

Related posts about ado.net-data-services

Related posts about best-practices