Enum definition is
public enum RowStatusEnum
{
Modified = 1,
Removed = 2,
Added = 3
}
public class RowStatusEnumConvertor : IMapperConfigurator
{
I have reproduced your problem. The solution is pretty simple, don't configure AutoMapper and set the base type of the enum to byte. Like this:
public enum RowStatusEnum : byte
{
Modified = 1,
Removed = 2,
Added = 3,
}
To let it work:
byte x = 3;
RowStatusEnum rowStatus = Mapper.Map(x);
//The result will be: Added