Open Source Web Application Framework for ASP.NET Core
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.
 
 
 
 
 
 

27 lines
875 B

using Volo.Abp.Mapperly.SampleClasses;
using Volo.Abp.Modularity;
using Volo.Abp.ObjectExtending;
using Volo.Abp.Threading;
namespace Volo.Abp.Mapperly;
[DependsOn(
typeof(AbpMapperlyModule),
typeof(AbpObjectExtendingTestModule)
)]
public class MapperlyTestModule : AbpModule
{
private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner();
public override void PreConfigureServices(ServiceConfigurationContext context)
{
OneTimeRunner.Run(() =>
{
ObjectExtensionManager.Instance
.AddOrUpdateProperty<ExtensibleReverseEntity, string>("Tag")
.AddOrUpdateProperty<ExtensibleReverseEntity, string>("Secret")
.AddOrUpdateProperty<ExtensibleReverseDto, string>("Tag")
.AddOrUpdateProperty<ExtensibleReverseDto, string>("Secret");
});
}
}