Open andrerav opened 1 year ago
Hello.
In this case, should not be version 7.3.0 marked as deprecated because of critical bugs in nuget.org?
hi, is there any progress?
Hello, new instanse always created if TDestination does not have a public constructor without parameters. Maybe this has something to do with the problem. In this case RecordTypeAdapter is selected for Class
Class is detected as Record in https://github.com/MapsterMapper/Mapster/blob/04ac871b55828c3909b6cee4764e6fab40db3983/src/Mapster/Utils/ReflectionUtils.cs#L161
Thanks to @DocSvartz this issue has been partially fixed. See #634 for details.
Hello @andrerav , have you had problems with dictionaries ?
The generic KeyValuePair has always been detect as a record.
when updating you always received new instanse KeyValuePair and include member if then has been detect as record
new KeyValuePair<FakeRecordKey,FakeRecordValue> (New _Key, new _Value)
@andrerav I open PR #646 When 2 Step of Fixing this problemm :)
There are numerous issues that have been reported since the release of 7.3.0 that seem to have a common theme -- performing a map to an existing object has a tendency to create a new object instance instead of preserving the instance being mapped. So far it seems that the following issues have reported this:
427
430
498
485
482
524
Other possibly related issues:
546
I'm working on investigating which chance in 7.3.0 that might have introduced this issue. I will update this issue when I have new information to share.