That specific exception just means there’s no mapping from “string” to “System.Uri”. If you create a type converter, it applies to ALL mappings (any CreateMap is global to a mapping configuration, profiles are for organization and common mapping rules).
There is no dynamic creation of maps on the fly. This is because AutoMapper does not validate maps at runtime. Without this runtime validation, members that don’t match will silently skipped. So you need to create maps once at startup.
--
You received this message because you are subscribed to the Google Groups "AutoMapper-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to automapper-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/automapper-users/ce99ca0e-07b8-4150-bfdc-4c842d7a48bbn%40googlegroups.com.
If you do that, don’t use AutoMapper. AutoMapper is meant for one-time startup configuration, validating all mappings in a unit test. If you have more dynamic needs, don’t use AutoMapper.
To view this discussion on the web visit https://groups.google.com/d/msgid/automapper-users/25eab308-f2b0-44cb-ad0b-1bf69bee78dcn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/automapper-users/25eab308-f2b0-44cb-ad0b-1bf69bee78dcn%40googlegroups.com.