-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
In vanilla AM, with the default behavior of EnumToEnumMapper, we have a mechanism in place that gracefully handles situations where differences in the naming of enum-values ar present.
For instance, mapping between these two enums is a no brainer:
public enum Source {
bar,
foo,
foobar
}
public enum Destination {
FOO,
FooBar,
BAR
}
However, when we leverage customization of mappings, we completely loose this convenience, when all we need is to customize a single or a few couple of enum-values.
Proposal:
Extend IEnumConfigurationExpression.MapByName to take an optional boolean parameter to control the internal behavior.
Default value would be false, as this should be the most back-wards-compatible introduction for this.
IEnumConfigurationExpression<TSource, TDestination> MapByName(bool ignoreCase = false);
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request