Duplicate mappings created when using MapDerivedType and nullable is disable #1709
Open
3 tasks done
Labels
bug
Something isn't working
Please do the checklist before filing an issue:
Describe the bug
Not sure of course if this is a bug, or if I'm doing it wrong but here it goes:
I have a project where nullable is set to disable.
<Nullable>disable</Nullable>
I have a abstract base class and a derived class with a property name mismatch.
When setting up the mappings I use the MapDerivedType attribute on the base class.
I use the MapProperty attribute on the derived class to properly map the different properties.
When looking at the generated code, I can see that there is one mapping generated for the derived class where it maps the object correctly including the property name change.
But, I also see another mapping of the derived class used by the base class mapping that does not contain the property change.
Why isn't it using the "real" mapping for the base class mapping.
Even without the property name change, it seems weird that another mapping is created.
When nullable is set to enable, it looks correct.
Thanks
Declaration code
Actual relevant generated code
Expected relevant generated code
Maybe something like this
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: