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.
42 lines
1.5 KiB
42 lines
1.5 KiB
using LINGYUN.Abp.Data.DbMigrator;
|
|
using LINGYUN.Abp.Notifications;
|
|
using LY.MicroService.RealtimeMessage.EntityFrameworkCore;
|
|
using Volo.Abp.Autofac;
|
|
using Volo.Abp.FeatureManagement;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.PermissionManagement;
|
|
using Volo.Abp.SettingManagement;
|
|
|
|
namespace LY.MicroService.RealtimeMessage.DbMigrator;
|
|
|
|
[DependsOn(
|
|
typeof(RealtimeMessageMigrationsEntityFrameworkCoreModule),
|
|
typeof(AbpDataDbMigratorModule),
|
|
typeof(AbpAutofacModule)
|
|
)]
|
|
public partial class RealtimeMessageDbMigratorModule : 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;
|
|
});
|
|
Configure<AbpNotificationsManagementOptions>(options =>
|
|
{
|
|
options.IsDynamicNotificationsStoreEnabled = true;
|
|
options.SaveStaticNotificationsToDatabase = true;
|
|
});
|
|
}
|
|
}
|
|
|