public override void PreInitialize() { Configuration.MultiTenancy.IsEnabled = false; //Configuration.Auditing.IsEnabledForAnonymousUsers = true; Configuration.Auditing.IsEnabled = false; Configuration.Localization.IsEnabled = false; Configuration.Authorization.IsEnabled = true; BackendLocalizationConfigurer.Configure(Configuration.Localization); Configuration.Settings.Providers.Add <AppSettingProvider>(); }
public override void PreInitialize() { Configuration.Auditing.IsEnabledForAnonymousUsers = 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); BackendLocalizationConfigurer.Configure(Configuration.Localization); // Enable this line to create a multi-tenant application. Configuration.MultiTenancy.IsEnabled = BackendConsts.MultiTenancyEnabled; // Configure roles AppRoleConfig.Configure(Configuration.Modules.Zero().RoleManagement); Configuration.Settings.Providers.Add <AppSettingProvider>(); }