We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoMapper can't seem to handle mapping Enums of type byte. Simple example below. More debug details included on StackOverflow
using AutoMapper namespace Test { public enum PriorityType : byte { Low = 0, Medium, High, Urgent } [Serializable] public enum PriorityTypeDto// : byte { Low = 0, Medium, High, Urgent } public class Program { public void Main() { Mapper.CreateMap<PriorityType, PriorirtyTypeDto>(); } } }
The text was updated successfully, but these errors were encountered:
Answered on SO too:
You don't need the CreateMap call - AutoMapper automatically handles enum types without any configuration. Just remove CreateMap and you're set.
Sorry, something went wrong.
Thanks for that, confirmed that works.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
AutoMapper can't seem to handle mapping Enums of type byte.
Simple example below.
More debug details included on StackOverflow
The text was updated successfully, but these errors were encountered: