Mapster
Mapster copied to clipboard
Int64.IConvertible.ToDateTime (IFormatProvider) was called # InvalidCastException
class Parent { public DateTime Time {get;set;} } class Child:Parent { public new long Time {get;set;} } // *** config.ForType<Parent, Child>() .Map(desc => desc.Time ,src => 1630985699000)
The above exception is thrown during mapping : InvalidCastException
@jeffcaper This is a strange design, in my opinion. Is there no way for you to work around this in your application?