github AutoMapper/AutoMapper v5.1.0
5.1.0

As part of this release we had 57 issues closed.

Features

  • #1573 Base class for simple object mappers that don't want to use expressions.
  • #1572 Constructor tests with prefixes and postfixes for source and destination
  • #1568 Profile scanning
  • #1253 Recognize pre/postfixes in ctor args

Improvements

  • #1559 Add an AllowNull configuration
  • #1557 Inline the easy cases
  • #1549 Break long line in AutoMapperConfigurationException
  • #1547 [aestethic] Missing newline in AssertConfigurationIsValid output
  • #1533 Portable profile 111 support
  • #1527 Better exception messages
  • #1512 Configuration faster
  • #1493 Enumerators
  • #1377 Inline sub map expressions
  • #1001 Expression.NotEqual causing an exception when using queryable projections

Bugs

  • #1612 Automapper is actually built with debug flags / non optimized when building in release mode.
  • #1602 Don't fail when the parameter name is null
  • #1601 Map from null interface
  • #1588 Struct with collection
  • #1579 The null substitute should have the same type as the value resolved
  • #1578 Using NullSubstitute with different source/destination types throws ArgumentException
  • #1567 Consider the underlying nullable type a related type when resolving t…
  • #1566 ConvertUsing from value type to the same value type doesn't work
  • #1558 Resorting to nuspec because of nuget weirdness
  • #1555 Don't allow duplicate After/Before Map registrations
  • #1554 Add a null guard instead of rewriting each node
  • #1552 5.0.2 Can't create map where source is DateTime.Date
  • #1550 Update to 5.0.2 broke existing maps
  • #1538 Map to existing object
  • #1537 Convert using to string
  • #1529 Possible regression: AutoMapper 5.0.2 calls ToString() where 4.x didn't
  • #1523 Reuse the default context even only when MaxDepth and PreserverRefer…
  • #1522 ExpandoObject is a dictionary and should be mapped as such
  • #1520 Fix #1518
  • #1519 Added failing unit test for #1518
  • #1518 Index was outside the bounds of the array.
  • #1516 Multiple destination type maps for the same source type fails and uses the first type instead when PreserveReferences is specified.
  • #1511 Revert the order of the binders; I'm guessing this is the root cause …
  • #1509 Projecting EF queryables with AllowNullCollections throws exception
  • #1508 Only doing null fixing on custom member mappings when there are only …
  • #1505 Exception when configuring mappings (worked in 4.2.1)
  • #1502 Fixes #1495
  • #1498 Fixes #1497
  • #1497 Automapper 5.0.2: Expression mapping
  • #1495 Automapper 5.0.2: System.Guid and TryExpression
  • #1494 Better match condition for enumerables
  • #1491 Issue with One to Many mappings in 5.0.2
  • #1490 Allow overriding the global ignore; fixes #1488
  • #1489 Handles the case when the resolver doesn't directly implement the res…
  • #1488 Broken changes in 5.0.2; AddGlobalIgnore cannot be overriden by specific mapping configuration
  • #1487 Configuration definition raises ArgumentNullReference in 5.0.2
  • #1486 Problem with mapping DTOs onto their POCO class in 5.02
  • #1357 AfterMap()/BeforeMap() getting invoked multiple times
  • #925 NotSuportedException when mapping entities with complex types using AutoMapper and Entity Framework

Where to get it

You can download this release from nuget

latest releases: v10.1.1, v10.1.0, v10.0.0...
4 years ago