-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Record detection - Adapt To Class not create new instance #634
New Record detection - Adapt To Class not create new instance #634
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: