Automapper - want case sensitive

后端 未结 2 762
轮回少年
轮回少年 2021-02-15 15:48

From similar questions on here I have read here that AutoMapper used to be case sensitive, but is now case insensitive. I want it case sensitive - can\'t see any wa

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-15 15:51

    You can Refer :

    DataReaderMapper should create case-insensitive mappings by default

    http://automapper.codeplex.com/workitem/6127

    you can control this in Mapper.Initialize as the answer AutoMapper: Mapping between a IDataReader and DTO object

    another good post with examples on naming convention mappings: http://blog.ac-graphic.net/automapping-c-objects-from-one-naming-convention-to-an-other/

提交回复
热议问题