I'm trying to configure automapper.Collections for my aspnet boilerplate core project, how do I get the DBContext to configure:
cfg.SetGeneratePropertyMaps> ();
ie in:
public override void Initialize()
{
var thisAssembly = typeof(ApplicationModule).GetAssembly();
IocManager.RegisterAssemblyByConvention(thisAssembly);
Configuration.Modules.AbpAutoMapper().Configurators.Add(
// Scan the assembly for classes which inherit from AutoMapper.Profile
cfg => {
cfg.AddProfiles(thisAssembly);
cfg.AddCollectionMappers();
cfg.SetGeneratePropertyMaps<GenerateEntityFrameworkCorePrimaryKeyPropertyMaps<dbcontext>> ();
}
);
}