SlapperAutoMapper / Slapper.AutoMapper

Slapper.AutoMapper maps dynamic data to static types. Slap your data into submission!
MIT License
287 stars 76 forks source link

Default enum value from Generic MapDynamic #67

Closed PabloPG closed 6 years ago

PabloPG commented 6 years ago

When i parse a generic type:

AutoMapper.Configuration.AddIdentifier(typeof(T), alias); return AutoMapper.MapDynamic(query) as IEnumerable;

In my class T i have a Enum: public enum SimNaoEnum { S = 0, N = 1 }

in dynamic query i have value N, but after automapper always get S (default value)