As part of this release we had 70 issues closed.
Features
- #2379 Inline config and auto-auto-mapping
- #2358 Migrate documentation from github to readthedocs
- #2324 Value transforms in ProjectTo
- #2304 Add ForPath conditions
- #2298 Condition for ForPath
- #2261 Value transformers in global, profiles, type maps, and members
- #2258 Value Transformers
- #2229 Ignore member paths
- #2199 Ignore a set of paths based on ignoring a matching member
- #2198 Support for EnumMemberAttribute
- #2173 Make compatible with net40
- #1741 Automapper not respecting EnumMemberAttribute value when mapping
Improvements
- #2389 Allow ToList/ToArray for primitive types
- #2387 Can't map IEnumerable to List
- #2382 Better error message
- #2380 Identified property parent incorrect in error message following ReverseMap() in nested models.
- #2362 Consider derived maps when setting PreserveReferences
- #2356 PreserveReferences with inheritance
- #2308 Mention ForPath
- #2307 Added NeutralResourcesLanguageAttribute
- #2303 Missing NeutralResourcesLanguageAttribute
- #2297 Enforce calling Mapper.Initialize once
- #2295 Enforce calling Mapper.Initialize once
- #2282 Null check static methods too
- #2252 Add PreCondition overload that takes source and ResolutionContext as parameters
- #2247 Make debugging easier
- #2243 Speed up the tests
- #2224 Inherit ForPath
- #2222 Validate included types
- #2221 Allow constructor mapping for value types
- #2207 Constructor mapping with struct
- #2191 Reverse mapping unflattening not working with IncludeBase
- #2190 Use Resolve instead of Find for expression generation
- #2185 Allow simple MapFrom-s to pass validation
- #2180 Sdk style tests
- #2177 Fix for #2166 and #2167.
- #2172 AssertConfigurationIsValid with MemberList.Source doesn't recognize inherited ForMember mapping
- #2166 Issue with MapExpression when expression checks if a string equals null
Bugs
- #2383 Fix for #2378 Expression mapping with coalesce operator is extremely slow or just hangs up.
- #2378 Expression mapping with coalesce operator is extremely slow or just hangs up
- #2376 Preserve references with ctor mapping
- #2363 ArgumentException: An item with the same key has already been added.
- #2348 Preserve references doesn't make sense for value types
- #2343 If it's a dynamically created type map, we need to seal it outside Ge…
- #2338 Adding member name inheritance; fixes #2333; fixing type usage inheri…
- #2333 typeof() version of IncludeBase() is not working
- #2286 Issue 2246 - UseAsDataSource throwing ArgumentNullException.
- #2245 Help the CLR find the assemblies it needs
- #2233 We have to set everything in the plan, we don't get a second chance
- #2230 Allow nullable to string conversion
- #2227 The map is for the interface, not for the class, so return a proxy
- #2223 Throw when we cannot create the destination
- #2219 Introduce a global lock when creating type maps on the fly
- #2205 Ignore properties with no setter
- #2202 Proposed fix for Error when mapping nested expressions #2201
- #2201 Error when mapping expressions with array members
- #2170 Use List for most IEnumerable-s
- #2169 AllowNullCollections=false not honored for IEnumerable
- #2167 Fix for issue #2166
Where to get it
You can download this release from nuget