I see that I can build a mapping for one-entity to one-dto using MappingBuilder().Map(..). and then transforming is done using mapper.Transform(source).

But is there a way to map one entity-type to many Dto types so I will be able to use something like this: Dto1 dto1 = mapper.Transform<dto1>(source); Dto2 dto2 = mapper.Transfrom<dto2>(source);

Thanks, David

This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by david_csharp.

asked Apr 26 '10 at 06:54

Editor's gravatar image


No, it isn't possible. One of the core principles of the current O2O implementation is one-to-one type mapping.

(Apr 26 '10 at 06:54) Alexander Nikolaev Alexander%20Nikolaev's gravatar image
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA