We are currently using v8 of AutoMapper in our code and is planning to upgrade to 9.0+. For that we need to convert all static mappers to instance based.
We have a lot of code in our code base like this below.
public class ConfigModel
{
public int MyProperty1 { get; set; }
...
public ConfigModel Load(ConfigEntity config)
{
Mapper.Map(config, this);
return this;
}
}
I am looking for something similar that we can do with IMapper. We just need to map an Entity to the properties in the model.