3
사용자 정의 포매터를 추가 :AutoMapper - 나는 RTW AutoMapper 1.0을 사용 및 사용자 정의 포맷터의 몇 가지를 추가하고
Mapper.AddFormatter<AlertTypeFormatter>();
Mapper.AddFormatter<DateStringFormatter>();
대상 유형은 모두 문자열이고 포매터 개별적으로 작동합니다. 그러나 함께 모아서 첫 번째 포맷터 만 호출됩니다. 이 경우 "AlertTypeFormatter".
아이디어가 있으십니까?
나는 일반 포매터를 설정 잘못 가고 어떤 생각을 : 설치 유형 특정 포맷터에 당신은 사용할 필요가? http://stackoverflow.com/questions/2779068/automapper-site-wide-usage-of-ivalueformatter-for-given-types – CRice