public override void PreInitialize() { Configuration.Authorization.Providers.Add <SMICAuthorizationProvider>(); Configuration.Authorization.Providers.Add <PersonAppAuthorizationProvider>(); // SMIC.PhoneBooks.Persons.Authorization Configuration.Authorization.Providers.Add <TaskAuthorizationProvider>(); Configuration.Authorization.Providers.Add <HomeInfoAuthorizationProvider>(); Configuration.Modules.AbpAutoMapper().Configurators.Add(configuration => { CustomerPersonMapper.CreateMappings(configuration); // 自定义类型映射 - SMIC.PhoneBooks.Persons.Dtos.LTMAutoMapper TaskMapper.CreateMappings(configuration); // MyTasks.Task的AutoMapper HomeInfoMapper.CreateMappings(configuration); }); }