22

If object a has a property named 'Id' and object b has a property named 'ID', will AutoMapper correctly map the two properties (without doing a .ForMember(...) call)?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Jon Erickson
  • 112,242
  • 44
  • 136
  • 174

2 Answers2

30

The trunk version is now default case-insensitive, and supports multiple naming conventions (camelCase, lowercase_underscore, etc). Look for this in the next version of AutoMapper, which should drop in a couple of days.

Jimmy Bogard
  • 26,045
  • 5
  • 74
  • 69
3

No, last time I tried it (month or so ago) it was case sensitive.

kay.one
  • 7,622
  • 6
  • 55
  • 74