public override void PreInitialize() { Configuration.Auditing.IsEnabledForAnonymousUsers = true; Configuration.EntityHistory.IsEnabled = true; // Declare entity types Configuration.Modules.Zero().EntityTypes.Tenant = typeof(Tenant); Configuration.Modules.Zero().EntityTypes.Role = typeof(Role); Configuration.Modules.Zero().EntityTypes.User = typeof(User); PlatformLocalizationConfigurer.Configure(Configuration.Localization); // Enable this line to create a multi-tenant application. Configuration.MultiTenancy.IsEnabled = PlatformConsts.MultiTenancyEnabled; // Configure roles AppRoleConfig.Configure(Configuration.Modules.Zero().RoleManagement); Configuration.Settings.Providers.Add <AppSettingProvider>(); //automap Configuration.Modules.AbpAutoMapper().Configurators.Add(configuration => { ProfessionListDtoMapper.CreateMappings(configuration, new MultiLingualMapContext( IocManager.Resolve <ISettingManager>() )); BlockDtoMapper.CreateMappings(configuration, new MultiLingualMapContext( IocManager.Resolve <ISettingManager>() )); }); }
public override void PreInitialize() { Configuration.Auditing.IsEnabledForAnonymousUsers = true; PlatformLocalizationConfigurer.Configure(Configuration.Localization); }