Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果对象a有一个名为“Id”b的属性,而对象有一个名为“ID”的属性,AutoMapper 会正确映射这两个属性(无需.ForMember(...)调用)吗?
a
b
.ForMember(...)
trunk 版本现在默认不区分大小写,并支持多种命名约定(camelCase、lowercase_underscore 等)。在 AutoMapper 的下一个版本中寻找这个,它应该会在几天内下降。
不,上次我尝试过(大约一个月前)它是区分大小写的。