Skip to content

v10.1.0-pre02

Pre-release
Pre-release

Choose a tag to compare

@DocSvartz DocSvartz released this 10 Aug 09:42
· 9 commits to v10.1.0 since this release

Fix:

  • added support DefaultValue() from constructor mapping;
  • added support MapUsing() from ExtraSource/Flattening mapping.

Improvements:

  • NullablePropagation improvements;
  • added ReMap() setting setter - Map() for Ignored member and an additional option to skip the application of Destination Transforms
config.Default.AddDestinationTransform(DestinationTransform.EmptyCollectionIfNull);
            config.ForDestinationType<DestinationFlattentData>()
                .Ignore(x => x.Value);
            config.NewConfig<SourceFlattentInsaider, DestinationFlattentData>()
                .ReMap(dest => dest, src => src.SrcData, true); 

 var result = src.Adapt<DestinationFlattentData>(config);

            result.Collection.ShouldBeNull(); // all member from ExtraSource - SrcData  has skip DestinationTransform.EmptyCollectionIfNull 
            result.Value.ShouldBe("Hello"); // property Value has value from ExtraSource - SrcData

What's Changed

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