public override void PreInitialize() { Configuration.Authorization.Providers.Add <HasinAuthorizationProvider>(); Configuration.Modules.AbpAutoMapper().Configurators.Add(config => { CategoryMapper.CreateMappings(config); ProductMapper.CreateMappings(config); }); }
public override void PreInitialize() { Configuration.Authorization.Providers.Add <CCodeAuthorizationProvider>(); Configuration.Authorization.Providers.Add <ArticleAppAuthorizationProvider>(); Configuration.Authorization.Providers.Add <CategoryAuthorizationProvider>(); Configuration.Authorization.Providers.Add <FileAuthorizationProvider>(); Configuration.Modules.AbpAutoMapper().Configurators.Add(configuration => { CategoryMapper.CreateMappings(configuration); FileMapper.CreateMappings(configuration); ArticleDtoMapper.CreateMappings(configuration); // .... }); }