|
|
|
@ -10,6 +10,10 @@ public class DataProtectionManagementApplicationMappingProfile :Profile |
|
|
|
CreateMap<EntityPropertyInfo, EntityPropertyInfoDto>() |
|
|
|
.ForMember(dto => dto.ValueRange, map => map.MapFrom(src => MapToArray(src.ValueRange))); |
|
|
|
CreateMap<EntityTypeInfo, EntityTypeInfoDto>(); |
|
|
|
CreateMap<RoleEntityRule, RoleEntityRuleDto>() |
|
|
|
.ForMember(dto => dto.AllowProperties, map => map.MapFrom(src => MapToArray(src.AllowProperties))); |
|
|
|
CreateMap<OrganizationUnitEntityRule, OrganizationUnitEntityRuleDto>() |
|
|
|
.ForMember(dto => dto.AllowProperties, map => map.MapFrom(src => MapToArray(src.AllowProperties))); |
|
|
|
} |
|
|
|
|
|
|
|
private string[] MapToArray(string val) |
|
|
|
|