As part of this release we had 42 issues closed.
The major change with 4.2 is the static API is marked as obsolete in favor of a new instance-based API. The static API will be removed with 5.0.
Features
- #1043 Obsolete Mutable Profile calls
- #1034 Mapping engine cleanup
- #1031 Non-static version of Mapper
- #1025 We can resolve optional parameters
- #983 Change MemberInfo to IValueResolver
- #980 Support expand with collections
- #955 Add case sensitivity option for DefaultName comparer
- #866 Mapping Dynamic Object to an Entity Framework DataObject
- #670 Does AutoMapper support conventions?
Improvements
- #1041 Marking Profile as abstract and Configure method abstract
- #1039 Read only configuration
- #1029 Fix ConcurrentDictionary issues
- #1023 Am I doing maps to constructors wrong?
- #998 Expand everything on the path to the passed member
- #996 Explicit expansion is not transitive
- #982 Max depth
- #981 Better exception message
- #966 Report missing includes bug 533
- #960 Fix Conventions and Generic TypeMaps not caching
- #958 Include base inheritance bug 911
- #957 ProjectTo only reading from type map cache and not trying to resolve.
- #956 Fixed duplicated path in the exception message
- #953 Make dest property's name type pass over correctly
- #937 Fix for #936
- #936 Mapping from a null array doesn't overwrite not null array with empty array when AllowNullCollections is false
- #911 Resolver is not inherited in some cases
- #533 Can't find missing mappings in included mapping.
- #514 Make it easier to create a MappingEngine instance
Bugs
- #1044 Passing test for #1040
- #1040 An empty integer collection doesn't map over a collection with values.
- #1022 NullReferenceException using AddConditionalObjectMapper (not when using empty CreateMap) on SECOND attempt to map value
- #994 Overwrite the context.DestinationType only if another destination typ…
- #993 Mapper.AssertConfigurationIsValid() throws NullReferenceException for Nullable -> Nullable property map
- #990 Removed DataReaderMapperYieldReturnEnabled; reverted ConstructorMappi…
- #968 Fix for #967
- #905 warning CS3001: Argument type 'AutoMapper.IConfiguration' is not CLS-compliant
Where to get it
You can download this release from nuget