Automatic injection of models to nested Data Transfer Objects (DTOs) and vice versa with ValueInjecter
The DTO pattern is often used in multi-layered applications where data is transfered from one layer to another, where -preferably- we keep the data being transfered to a minimum. One of the issues I’ve ran into while applying this pattern is the use of nested DTO’s and automatic mapping from DTOs to models and vice versa. Allow me to clarify with an example: Suppose I have a .NET MVC application where I want do perform some simple CRUD operations on the following domain classes, Person and Address: ...