Friday, February 20, 2009

A while back I did this post talking about how WCF contract definitions should model the messages being passed and not use business  objects. This inevitably  means that you have to translate from the Data Transfer Object (DTO) in the contract to business object and back again. This can feel like a lot of overhead but it really does protect you from a lot of heartache further down the line.

However Dom just pointed out the AutoMapper to me. This is in its early stages but looks like the kind of library that will really take away a lot of the grunt work associated with using DTOs – kudos!

 | 
Friday, February 20, 2009 5:55:55 PM (GMT Standard Time, UTC+00:00)  #    Comments [1]Trackback
Friday, September 18, 2009 5:12:27 AM (GMT Daylight Time, UTC+01:00)
This is brilliant... I've been hand coding my DTO's in wcf - mostly 1 to 1... automapper saves me heaps of time!
thanks for the insight!

Giovanni
fotografiacoppola.com
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):