Our project is very modular with Profiles defined in several different locations. The code is cumbersome due to the requirement that AddAutoMapper must be called in a single location exactly once. This is inconsistent with the AddXXXX extension methods provided by the various Micorosft.Extensions.XXX libraries. The result of calling AddAutoMapper multiple times is a silent failure where not all mapping are registered.
It would be much more useful if mapping registrations could be registered additively by invoking AddAutoMapper multiple times.
Our project is very modular with
Profile
s defined in several different locations. The code is cumbersome due to the requirement thatAddAutoMapper
must be called in a single location exactly once. This is inconsistent with theAddXXXX
extension methods provided by the variousMicorosft.Extensions.XXX
libraries. The result of callingAddAutoMapper
multiple times is a silent failure where not all mapping are registered.It would be much more useful if mapping registrations could be registered additively by invoking
AddAutoMapper
multiple times.