New Record detection - Adapt To Class not create new instance#634
New Record detection - Adapt To Class not create new instance#634andrerav merged 11 commits intoMapsterMapper:developmentfrom
Conversation
not fix - collection issue MapsterMapper#430 MapsterMapper#546 - object to ToDistination MapsterMapper#524
|
Nice work! I added some comments on typos/symbol names that should be fixed. |
|
@andrerav Ok, I'll try to fix it within a couple of days. |
|
@andrerav Collections had the required behavior in build 5.3.2 Modification from Object To Type was not supported in any of them Classes were completely degraded in version 7.0.0; in version 7.2.0, classes with a public constructor without parameters returned to their previous behavior. I hope this helps in resolving other issues |
|
@andrerav Perhaps you should add new Attribute From Types, Field and Property How do you feel about this decision? |
Hm. Given the circumstances this could be an okay compromise to help users that end up in this situation. Maybe something like: [AdaptAs(Source.Record)]To get a cleaner API. I think we should open a separate issue on that though. What you've done in this PR should already fix the problem for a lot of users :) |
add new test from Adapt Object to Type
|
@andrerav Sorry, I reread the record specification again |
|
Feel free to correct this one :) |
|
@andrerav I checked collection and object adapt bug. This equal _destination with {_sourse.field ..}, although it happens differently :) |
|
Don,t check. I try fixing fix :) on next week. To minimize the false-positive detection of Fake Records. |
279c326 to
1ab9810
Compare
add targeting to RecordType Clone Method
|
@DocSvartz Is this PR ready to be merged? Or do you still have any work in progress that you want to push before I merge it? |
del empty lines
|
Yes, I've made the final edits.
Attribute Most likely it will be like this This Bug occurred when Fake Record was in the role TDestination :) |
|
Thank you! |
New Record detection - Adapt To Class not create new instance
Partial Fix Bug from issue #537
Not Fix:
Changes:
Regress:
Required configuration Constructor from Class that does not have a public constructor without parameters and contains Properties with private setters From .Compile() configuration.
Current spec of record description at the end of the page Temporarily not supported.
Problems: