Closed GihanSoft closed 1 year ago
AddParameters() work just fine. But you are missing some required configuration to make this work:
TypeAdapterConfig<Class1, Class2>.NewConfig()
.Map(dest => dest.Id,
src => MapContext.Current.Parameters["Id"]);
More information here: https://github.com/MapsterMapper/Mapster/wiki/Setting-values
This is not working. Id is '0'