0

I'm having a really difficult time mapping from a DynamicObject using Automapper -- the properties on my destination type always end up null even though they do map to a property of the same name. I assume this has to do with reflection issues on DynamicObjects... Is Automapper able to do this?

hackerhasid
  • 11,699
  • 10
  • 42
  • 60
  • possible duplicate of [AutoMapper (Or Similar) - Allow Mapping of Dynamic types?](http://stackoverflow.com/questions/7778216/automapper-or-similar-allow-mapping-of-dynamic-types) – Meta-Knight Feb 18 '13 at 17:36

1 Answers1

0

Similar question to Allow mapping of dynamic types using AutoMapper or similar?

In summary AutoMapper does not support this. It's easy to write your own mapper to do this using reflection though. The accepted answer to Allow mapping of dynamic types using AutoMapper or similar? has an example of this.

Community
  • 1
  • 1
DalSoft
  • 10,673
  • 3
  • 42
  • 55