Release of v1.0.2
What's new since v1.0.1
Bug fix:
- Enum mapping now translates correctly with SQL database providers
EnumMapperexpressions 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.