AutoMapper Usage Guidelines

added by DotNetKicks
2/26/2019 3:09:19 PM

2 Kicks, 581 Views

Configuration √ DO initialize AutoMapper once with Mapper.Initialize at AppDomain startup in legacy ASP.NET √ DO use the AutoMapper.Extensions.Microsoft.DependencyInjection package in ASP.NET Core with services.AddAutoMapper(assembly[]) X DO NOT call CreateMap on each request X DO NOT use inline maps √ DO organize configuration into profiles