public override void PreInitialize() { Configuration.Authorization.Providers.Add <BookListAuthorizationProvider>(); Configuration.Authorization.Providers.Add <CloudBookListAuthorizationProvider>(); // 自定义类型映射 Configuration.Modules.AbpAutoMapper().Configurators.Add(configuration => { // XXXMapper.CreateMappers(configuration); BookMapper.CreateMappings(configuration); BookTagMapper.CreateMappings(configuration); CloudBookListMapper.CreateMappings(configuration); }); }
public override void PreInitialize() { Configuration.Authorization.Providers.Add <BookListAuthorizationProvider>(); #region 云书单权限 // 书籍标签权限 Configuration.Authorization.Providers.Add <BookTagAuthorizationProvider>(); // 书籍权限 Configuration.Authorization.Providers.Add <BookAuthorizationProvider>(); // 书单权限 Configuration.Authorization.Providers.Add <CloudBookLists.BookLists.Authorization.BookListAuthorizationProvider>(); #endregion // 自定义类型映射 Configuration.Modules.AbpAutoMapper().Configurators.Add(configuration => { #region 云书单Mapper // 书籍标签 BookTagMapper.CreateMappings(configuration); // 书籍 BookMapper.CreateMappings(configuration); // 书单 BookListMapper.CreateMappings(configuration); #endregion }); }