I have a 'database' class named User:
class SqlUser { public int Id {get;set;} }
and a DTO for it:
class User { public int UserId {get;set;} }
Is there a way to map this automatically using Mapster? It does not work by default.
If it does require configuration, how do I pass the TypeAdapterConfiguration<T,U>
object to Adapt
method? It only accept a non-generic TypeAdapterConfiguration
class.