Question

As I understand it, an Assembler is a design pattern used to convert a domain object to a DTO.

What would you call the design pattern that is used to convert a DTO to a domain object ?

Was it helpful?

Solution

Data Transfer Object is the (P of EAA) design pattern. Assembler is just a name given to one of its components.

I think you could use the term Assembler when going in either direction (another common term is Mapper). Or you could say Assembler for domain object -> DTO, and Disassember for DTO -> domain object.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top