Is there any way to auto-configue Automapper to scan for all profiles in namespace/assembly? What I would like to do is to add mapping profiles to AutoMapper from given asse
public class AutoMapperAdapter : IMapper
{
private readonly MapperConfigurationExpression _configurationExpression =
new MapperConfigurationExpression();
public void AssertConfigurationIsValid() { Mapper.AssertConfigurationIsValid(); }
public void CreateMap()
{
_configurationExpression.CreateMap();
}
public void Initialize() { Mapper.Initialize(_configurationExpression); }
public TDestination Map(object source)
{
return Mapper.Map(source);
}
}