AutoMapper extensions for Microsoft DI 3.2.0 released

added by DotNetKicks
11/16/2017 1:19:28 PM

2 Kicks, 249 Views

Today I pushed out a small change to the AutoMapper.Extensions.Microsoft.DependencyInjection package to allow instance-based initialization. Before you initialize with services.AddAutoMapper(), set a configuration flag: ServiceCollectionExtensions.UseStaticRegistration = false; services.AddAutoMapper(); By default the extension will register using Mapper.Initialize, but with this flag off, the extension instead


0 comments