Skip to content

Commit

Permalink
Added [Decompile] attribute on some DTO mappers (#6)
Browse files Browse the repository at this point in the history
This attribute indicates which methods are to be decompiled.
  • Loading branch information
MrDave1999 committed Aug 9, 2022
1 parent ae2be7a commit ed959ca
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Features/Dependents/DependentMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public static Dependent MapToDependent(this DependentInsertDto dependentDto)
StatusId = StatusId.Active
};

[Decompile]
public static DependentGetDto MapToDependentGetDto(this Dependent dependent)
=> new()
{
Expand Down
1 change: 1 addition & 0 deletions src/Features/Genders/GenderMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

public static class GenderMapper
{
[Decompile]
public static GenderGetDto MapToGenderGetDto(this Gender gender)
=> new()
{
Expand Down
1 change: 1 addition & 0 deletions src/Features/GeneralTreatments/GeneralTreatmentMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

public static class GeneralTreatmentMapper
{
[Decompile]
public static GeneralTreatmentGetDto MapToGeneralTreatmentGetDto(this GeneralTreatment treatment)
=> new()
{
Expand Down
1 change: 1 addition & 0 deletions src/Features/Kinships/KinshipMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

public static class KinshipMapper
{
[Decompile]
public static KinshipGetDto MapToKinshipGetDto(this Kinship kinship)
=> new()
{
Expand Down
1 change: 1 addition & 0 deletions src/Features/Persons/Person.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
1 change: 1 addition & 0 deletions src/Features/Users/UserMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public static User MapToUser(this UserInsertDto userInsertDto)
Password = userInsertDto.Password
};

[Decompile]
public static UserResetPasswordDto MapToUserResetPasswordDto(this User user)
=> new()
{
Expand Down

0 comments on commit ed959ca

Please sign in to comment.