Can AutoMapper Map Between a Value Type (Enum) and Reference Type? (string)

For mapping between two types where you’re taking control of the entire mapping, use ConvertUsing:

Mapper.CreateMap<MyEnum, string>().ConvertUsing(src => src.ToString());

All the other methods assume you’re mapping to individual members on the destination type.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)