2010-02-08 4 views

답변

4

수정 됨. 나중에 참조 할 수 있도록 Mapper.AddFormatter는 실제로 Automap에서 사용할 기본 포맷터를 설정합니다.

Mapper.ForSourceType<DateTime>().AddFormatter<DateStringFormatter>(); 

도현 ...

+0

나는 일반 포매터를 설정 잘못 가고 어떤 생각을 : 설치 유형 특정 포맷터에 당신은 사용할 필요가? http://stackoverflow.com/questions/2779068/automapper-site-wide-usage-of-ivalueformatter-for-given-types – CRice