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)?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
回答2:
No, last time I tried it (month or so ago) it was case sensitive.