Ejemplo n.º 1
0
        public override void PreInitialize()
        {
            Configuration.Authorization.Providers.Add <HasinAuthorizationProvider>();

            Configuration.Modules.AbpAutoMapper().Configurators.Add(config =>
            {
                CategoryMapper.CreateMappings(config);
                ProductMapper.CreateMappings(config);
            });
        }
Ejemplo n.º 2
0
        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);
                // ....
            });
        }