v10.0.4
·
143 commits
to development
since this release
Breaking change in v10.0+ and new feature
New feature:
- Fix #883 - Add class ctor using default value for param by @DocSvartz in #885
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: Restore PackageLicense by @DocSvartz in #870
- Fix #875 - ProjectToType regression in v10 by @DocSvartz in #876
- Feature : add simplification UseDestinationValue configuration method by @DocSvartz in #886
- Fix #883 - Add class ctor using default value for param by @DocSvartz in #885
- Fix: Restore v7.4.0 behavior for property without setter in class by @DocSvartz in #887
- Fix #881 - ProjectToType record regression by @DocSvartz in #888
- Improvement build - part 1 by @DocSvartz in #889
- fix: Typo in Data-types.md by @NLHaarP in #891
New Contributors
Full Changelog: v10.0.0...v10.0.4