-
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
Properties do not map properly #407
Comments
@kzeratal Can you share the mapping config and your custom type conversion code? Or alternatively set up a minimal test case if that's easier for you. |
The following are the config and classes.
Extensions look like
and the usage
|
Have you added breakpoints to the ToLong() and ToDateTime() methods and verified that they are being called as expected? |
Well, they are not being called. |
I see. You have also checked that the DateTimeConfig.Register() method is called? |
Yes, the register was executed. |
It needs some work, but it definitely works as I planned when the mapping To primitive.
update must work because Datetime not primitive. I just set the settings for the update script |
Work all
|
@andrerav Yes, this is simply due to the lack of support for custom mapping processing from primitive type |
I have a class
A
that has aDateTime
property, and classB
that has along
property.Both properties have the same name.
I've setup the rule for type
DateTime
converting tolong
in a configC1
which implementsIRegister
interface.And of course a config
C2
forA
converting toB
But when I map from
A
toB
, thatDateTime
property will always 0, unless I set the mapping rule in configC2
.The text was updated successfully, but these errors were encountered: