In my Startup.cs
file I have an AutoMapper configuration in my ConfigureServices
method:
AutoMapper.Mapper.Initialize(c => c.AddMaps(typeof(Models.MapperProfile), typeof(Data.Ef.MapperProfile)));
namespace Rm.Combo.Api.Models
{
public class MapperProfile : Profile
{
public MapperProfile()
{
CreateMap<NewCashoutModel, App.Cashouts.InitiateCashoutCommand>();
}
}
}
namespace Rm.Combo.Data.Ef
{
public class MapperProfile : Profile
{
public MapperProfile()
{
CreateMap<Domain.Cashouts.Cashout, Data.Cashouts.CashoutModel>();
}
}
}
Seems there was a certain number of breaking changes since I am moving from version 8.1.1
to the 9.0.0
.
I tried to check those particular links:
- AutoMapper Migrating from static API
- https://lostechies.com/jimmybogard/2016/01/21/removing-the-static-api-from-automapper
But none of them says how to