Open jvmlet opened 7 months ago
We have POCOs with the same type name in different namespaces. Adding -p fixes the ambiguous reference, but generates enum mapping like
-p
Mapster.Utils.Enum<x.y.z.E>.Parse(Mapster.Utils.Enum<a.b.c.E>.ToString()),
that fails to compile with error
The type or namespace name 'Utils' does not exist in the namespace 'xxxxxxx'
Same for Mapster.TypeAdapter<T1,T2>
Mapster.TypeAdapter<T1,T2>
To fix, please render
using Mapster; using Mapster.Utils;
and non-qualified Enum<SomeType>.Parse()... even if -p is requested.
Enum<SomeType>.Parse()...
Thanks
We have POCOs with the same type name in different namespaces. Adding
-p
fixes the ambiguous reference, but generates enum mapping likethat fails to compile with error
Same for
Mapster.TypeAdapter<T1,T2>
To fix, please render
and non-qualified
Enum<SomeType>.Parse()...
even if -p is requested.Thanks