Currently Browsing: Patterns

Automatically Populate DTOs

The lowly DTO, a pattern described by Martin Fowler that enables you to reduce the number of API calls you make across a remote boundary; it allows this by grouping all the data in to a new data type and returning that instead. I have however found that this pattern can cause you to write a lot of code that is nothing more than property setting. The code provided in this post (here) allows you to automate the population of these DTOs saving you time, so you can get on with something more important like drinking coffee....
read more