-
Source/destination types// Put your source/destination types here Mapping configuration.ForAllOtherMembers(opt => opt.Ignore()) // Mapper.Initialize or just the CreateMap snippet Version: x.y.zMigrating from 10.1.1 to 12.0.1 Expected behaviorI'm migrating from 10.1.1 to 12.0.1 and need to get an equivalent of ForAllOtherMembers(opt => opt.Ignore()). Using CreateMap<Source, Destination>(MemberList.None) as given in https://docs.automapper.org/en/latest/11.0-Upgrade-Guide.html doesn't produce the same behavior. Appreciate if you can provide a pointer to a working example to migrate ForAllOtherMembers(). I expect the migration path for ForAllOtherMembers(opt => opt.Ignore()). Actual behaviorSteps to reproduce// Your calls to Mapper.Map or ProjectTo here, with source/destination objects constructed |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There isn't one. This behavior is something we never should have included. You'll have to find some other way or implement it yourself. |
Beta Was this translation helpful? Give feedback.
There isn't one. This behavior is something we never should have included. You'll have to find some other way or implement it yourself.