Is AutoMapper case sensitive or insensitive?

Jon Erickson picture Jon Erickson · Sep 2, 2009 · Viewed 7k times · Source

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)?

Answer

Jimmy Bogard picture Jimmy Bogard · Sep 3, 2009

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.