You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
using LY.MicroService.LocalizationManagement.EntityFrameworkCore;
|
|
using Volo.Abp.Autofac;
|
|
using Volo.Abp.FeatureManagement;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.PermissionManagement;
|
|
using Volo.Abp.SettingManagement;
|
|
|
|
namespace LY.MicroService.LocalizationManagement.DbMigrator;
|
|
|
|
[DependsOn(
|
|
typeof(LocalizationManagementMigrationsEntityFrameworkCoreModule),
|
|
typeof(AbpAutofacModule)
|
|
)]
|
|
public partial class LocalizationManagementDbMigratorModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<SettingManagementOptions>(options =>
|
|
{
|
|
options.IsDynamicSettingStoreEnabled = true;
|
|
options.SaveStaticSettingsToDatabase = true;
|
|
});
|
|
Configure<FeatureManagementOptions>(options =>
|
|
{
|
|
options.IsDynamicFeatureStoreEnabled = true;
|
|
options.SaveStaticFeaturesToDatabase = true;
|
|
});
|
|
Configure<PermissionManagementOptions>(options =>
|
|
{
|
|
options.IsDynamicPermissionStoreEnabled = true;
|
|
options.SaveStaticPermissionsToDatabase = true;
|
|
});
|
|
}
|
|
}
|
|
|