-
Notifications
You must be signed in to change notification settings - Fork 334
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
Regression bug - works on 7.3.0 not on 7.4.0 #672
Comments
I've also tried it with DryIoC with the following registration:
But this also fails with the same error - although I swear I had it working with DryIoC before... |
Ok cause I was really certain that this worked before with DryIoC and the only other thing I could think of was that I updated Mapster... I decided to go back to 7.3.0 and that works so this looks a regression bug? |
Hello @andrerav . This remains current given changes to the code from the development branch. From development branch code it works without error if destination is Record Types . Hello @FaustoNascimento. Yes, these are slightly different mapping methods.
|
fixed it in #753 For DI/IoC no testing was conducted. upd:
But in this case, only the redefined property is updated, unlike the original case. This question remains relevant:
If this was not expected, then this is an independent bug. |
…lass Fix issue #672 - AmbiguousMatchException
I found some pretty weird behaviour with Mapster 7.4.0...
Imagine you have the following DTOs:
With no configuration at all, Mapster should be able to map between these two types and it can... but only depending on how it's invoked:
To make things worse ... if your DTOs are not as simple as this example and you use DI/IoC and you combine this with
TypeAdapterConfig<Source, BDestination>.NewConfig().ConstructUsing()
then the results are again unexpected depending on the Expression passed:Any ideas what's going on and any potential workarounds?
The text was updated successfully, but these errors were encountered: