From ed959ca6e0b87e0ed8c330035e423ba895bde241 Mon Sep 17 00:00:00 2001 From: MrDave1999 Date: Mon, 8 Aug 2022 23:36:48 -0500 Subject: [PATCH] Added [Decompile] attribute on some DTO mappers (#6) This attribute indicates which methods are to be decompiled. --- src/Features/Dependents/DependentMapper.cs | 1 + src/Features/Genders/GenderMapper.cs | 1 + src/Features/GeneralTreatments/GeneralTreatmentMapper.cs | 1 + src/Features/Kinships/KinshipMapper.cs | 1 + src/Features/Persons/Person.cs | 1 + src/Features/Users/UserMapper.cs | 1 + 6 files changed, 6 insertions(+) diff --git a/src/Features/Dependents/DependentMapper.cs b/src/Features/Dependents/DependentMapper.cs index 4df159ae..ae9ee54d 100644 --- a/src/Features/Dependents/DependentMapper.cs +++ b/src/Features/Dependents/DependentMapper.cs @@ -21,6 +21,7 @@ public static Dependent MapToDependent(this DependentInsertDto dependentDto) StatusId = StatusId.Active }; + [Decompile] public static DependentGetDto MapToDependentGetDto(this Dependent dependent) => new() { diff --git a/src/Features/Genders/GenderMapper.cs b/src/Features/Genders/GenderMapper.cs index e98d605c..56b55df8 100644 --- a/src/Features/Genders/GenderMapper.cs +++ b/src/Features/Genders/GenderMapper.cs @@ -2,6 +2,7 @@ public static class GenderMapper { + [Decompile] public static GenderGetDto MapToGenderGetDto(this Gender gender) => new() { diff --git a/src/Features/GeneralTreatments/GeneralTreatmentMapper.cs b/src/Features/GeneralTreatments/GeneralTreatmentMapper.cs index 6e336374..c72ea912 100644 --- a/src/Features/GeneralTreatments/GeneralTreatmentMapper.cs +++ b/src/Features/GeneralTreatments/GeneralTreatmentMapper.cs @@ -2,6 +2,7 @@ public static class GeneralTreatmentMapper { + [Decompile] public static GeneralTreatmentGetDto MapToGeneralTreatmentGetDto(this GeneralTreatment treatment) => new() { diff --git a/src/Features/Kinships/KinshipMapper.cs b/src/Features/Kinships/KinshipMapper.cs index 93ecdef1..33a90e73 100644 --- a/src/Features/Kinships/KinshipMapper.cs +++ b/src/Features/Kinships/KinshipMapper.cs @@ -2,6 +2,7 @@ public static class KinshipMapper { + [Decompile] public static KinshipGetDto MapToKinshipGetDto(this Kinship kinship) => new() { diff --git a/src/Features/Persons/Person.cs b/src/Features/Persons/Person.cs index dbeb6912..03c2c4f2 100644 --- a/src/Features/Persons/Person.cs +++ b/src/Features/Persons/Person.cs @@ -14,6 +14,7 @@ public class Person : ModelBase public Employee Employee { get; set; } public Dependent Dependent { get; set; } + [Decompile] [NotMapped] public string FullName => Names + " " + LastNames; } diff --git a/src/Features/Users/UserMapper.cs b/src/Features/Users/UserMapper.cs index e62c7fbe..34f392a7 100644 --- a/src/Features/Users/UserMapper.cs +++ b/src/Features/Users/UserMapper.cs @@ -62,6 +62,7 @@ public static User MapToUser(this UserInsertDto userInsertDto) Password = userInsertDto.Password }; + [Decompile] public static UserResetPasswordDto MapToUserResetPasswordDto(this User user) => new() {