Skip to content

v10.1.0-pre03

Pre-release
Pre-release

Choose a tag to compare

@DocSvartz DocSvartz released this 15 Oct 10:18
· 11 commits to v10.1.0 since this release

Breaking changes ⚠️

  1. Setting UseDestinationValue you can use for all Properties of DestinationType , including the writable property
    example: string Property {get; set;};
  2. Setting Map() override the Ignore() setting, Excluding cases ExtraSource(Multiple sources) mapping

New features and improvements

  1. Setting Map() improvements:
    1.1) Added supported different types source in Mapping with condition cases;
    Example:
TypeAdapterConfig<DiffPoco, DiffDto>.NewConfig()
    .Map(dest => dest.Value, src => src.ValueInt, cond => cond.Checker == 1)
    .Map(dest => dest.Value, src => src.ValueString, cond => cond.Checker == 2)
    .Map(dest => dest.Value, src => src.ValueBool, cond => cond.Checker == 3)
    .Map(dest => dest.Value, src => src.Checker);

1.2) The analysis of the source passed as a parameter has been improved to enable the use of Null propagation.

Full Changelog: v10.1.0-pre02...v10.1.0-pre03