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 ?

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top