Skip to content

Release of v1.0.2

Choose a tag to compare

@tibold tibold released this 17 Mar 23:14
· 86 commits to main since this release

What's new since v1.0.1

Bug fix:

  • Enum mapping now translates correctly with SQL database providers EnumMapper expressions used bare enum-typed constants that EF Core couldn't translate to SQL (e.g. SQL Server, PostgreSQL, SQLite). Values are now cast to the underlying integer type in the expression tree.
  • Destination new() constraint enforcement constructor-based mapping (e.g. src => new Dto(src.Id)) is now rejected at build time with a clear error, since EF Core cannot translate parameterized constructors.

Documentation update:

  • Composable MapperContext mapper contexts can now depend on other contexts via constructor injection, enabling split ownership of mappings across modules.
  • Method-based mapper composition nested mappers can be retrieved via method calls (parameterless or with constant arguments) in addition to property access. EagerBuildAll() also discovers mappers returned by public parameterless methods.