-
Notifications
You must be signed in to change notification settings - Fork 335
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
Mapster fail to use user-defined explicit or implicit conversion operators from target type #569
Comments
@Orace Which version of Mapster are you using? |
@andrerav, the last one available on NuGet: 7.3.0, the demo code run on .Net7 |
Could you try the latest prerelease please? |
This is #537 adapt Guid to Id is Not possible
then:
Having learned this, I added the constructor from the Guid to ID And naming of Member TSource and parameters in ctor TDestination Must be equal according to the used Naming convention
|
From then TDistination detect as class it work |
@andrerav, It fails with 7.4.0 too. |
From this SO question.
Given the type
Id
:Despite the implicit conversion Mapster fail to map a
Guid
to anId
:Demo code available here.
The text was updated successfully, but these errors were encountered: