You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following classes and patterns that Mapster can't work with. Specifically the pattern for overwriting the DerivedPayment in each of the derived classes.
When debugging it shows that the "setter" gets the correct value, Dom/DtoDerivedPayment. But when the "getter" is called this value is somehow overwritten to the base instance of Dom/DtoPayment instead, resulting in a "System.InvalidCastException : Unable to cast object of type 'DomPayment' to type 'DomDerivedPayment'."
I have the following classes and patterns that Mapster can't work with. Specifically the pattern for overwriting the DerivedPayment in each of the derived classes.
When debugging it shows that the "setter" gets the correct value, Dom/DtoDerivedPayment. But when the "getter" is called this value is somehow overwritten to the base instance of Dom/DtoPayment instead, resulting in a "System.InvalidCastException : Unable to cast object of type 'DomPayment' to type 'DomDerivedPayment'."
The text was updated successfully, but these errors were encountered: