Releases: MapsterMapper/Mapster
v10.0.8-pre04
What's Changed
- fix IgnoreNonMapped member collector #924 by @DocSvartz in #929
- Fix: #928 - not creation abstract destination if souce is null by @DocSvartz in #933
- fix: #927 add skip if destination member is not setter by @DocSvartz in #934
- fix: #925 - Compile config with open generic is not throw exception by @DocSvartz in #935
Full Changelog: v10.0.8-pre03...v10.0.8-pre04
v10.0.8-pre03
What's Changed
- fix race condition when mapping to Record used IgnoreNullValues by @DocSvartz in #923
Full Changelog: v10.0.8-pre02...v10.0.8-pre03
v10.0.8-pre02
What's Changed
- fix IsNotSelfCreation detect by @DocSvartz in #919
Full Changelog: v10.0.8-pre01...v10.0.8-pre02
v10.0.8-pre01
What's Changed
- feat: add Flattening mapping for all source type by @DocSvartz in #916
Full Changelog: 10.0.7...v10.0.8-pre01
10.0.7
What's Changed
- Fix: regression when update required property by @DocSvartz in #902
- Add ctor null propagation by @DocSvartz in #903
- Fix bug in #903 and Fix #858 by @DocSvartz in #905
- Fix regression when abstract destination type have required properties by @DocSvartz in #907
- fix: IgnoreNullValues regression from MapToTarget cases in #905 by @DocSvartz in #908
- Restore behavior for types cannot be instantiated from itselves by @DocSvartz in #912
- Bump version to 10.0.7 - Release by @DocSvartz in #913
Full Changelog: v10.0.6...10.0.7
10.0.7-pre04
What's Changed
- fix: IgnoreNullValues regression from MapToTarget cases in #905 by @DocSvartz in #908
Full Changelog: v10.0.7-pre03...10.0.7-pre04
v10.0.7-pre03
What's Changed
- Fix regression when abstract destination type have required properties by @DocSvartz in #907
Full Changelog: v10.0.7-pre02...v10.0.7-pre03
v10.0.7-pre02
What's Changed
- Fix bug in #903 and Fix #858 by @DocSvartz in #905
Full Changelog: v10.0.7-pre01...v10.0.7-pre02
v10.0.7-pre01
What's Changed
- Fix: regression when update required property by @DocSvartz in #902
- Added ctor null propagation by @DocSvartz in #903
Full Changelog: v10.0.6...v10.0.7-pre01
v10.0.6
Breaking change in v10.0+ and new feature
New feature:
- Fix #883 - Add class ctor using default value for param
In version 7.4.0 this feature was only available for record types
If you encountered this mapping behavior in 7.4.0, it is possible that your class was recognized as a record type, or was mistakenly recognized as a record type See more.
If you need the mapping behavior as for Record, in v10.0+ you can use - [AdaptWith(AdaptDirectives.DestinationAsRecord)] .
If you need the ability to set this setting without using attributes, open issue on this topic.
Example:
[AdaptWith(AdaptDirectives.DestinationAsRecord)]
public class SimpleRecord
{
public int Id { get; private set; }
public string Name { get; private set; }
public SimpleRecord(int id, string name)
{
this.Id = id;
this.Name = name;
}
}
What's Changed
- fix: #893 by @DocSvartz in #894
- fix: Regression in v10 - disabled ConstructUsing and MapToConstructor if have public parameterless constructor by @DocSvartz in #896
Full Changelog: v10.0.4...v10.0.6