Hi I am using AutoMapper to move from a Model to a Dto and it’s working great.
In one TypeConverter I need to inject an Interface (a service) that has to be used by the type converter in order to do the conversion.
How can I accomplish this in AutoMapper?
Can you not just create a constructor on your
TypeConverterclass, accepting the service? Rather than using the genericConvertUsing, pass in a new instance of yourTypeConverterconstructed with the service…Usage: