From e51470a4498db988bbb97901c472ac58c4fdf90e Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 13 Oct 2025 11:16:37 +0200 Subject: [PATCH] create AnnotationDto --- .../Common/Dto/AnnotationDto.cs | 42 +++++++++++++++++++ .../Common/Dto/MappingProfile.cs | 1 + 2 files changed, 43 insertions(+) create mode 100644 EnvelopeGenerator.Application/Common/Dto/AnnotationDto.cs diff --git a/EnvelopeGenerator.Application/Common/Dto/AnnotationDto.cs b/EnvelopeGenerator.Application/Common/Dto/AnnotationDto.cs new file mode 100644 index 00000000..9adb2289 --- /dev/null +++ b/EnvelopeGenerator.Application/Common/Dto/AnnotationDto.cs @@ -0,0 +1,42 @@ +namespace EnvelopeGenerator.Application.Common.Dto; + +/// +/// +/// +public record AnnotationDto +{ + /// + /// + /// + public long Id { get; init; } + + /// + /// + /// + public int ElementId { get; init; } + + /// + /// + /// + public string Name { get; init; } = null!; + + /// + /// + /// + public string Value { get; init; } = null!; + + /// + /// + /// + public DateTime AddedWhen { get; init; } + + /// + /// + /// + public DateTime? ChangedWhen { get; init; } + + /// + /// + /// + public string? ChangedWho { get; init; } +} \ No newline at end of file diff --git a/EnvelopeGenerator.Application/Common/Dto/MappingProfile.cs b/EnvelopeGenerator.Application/Common/Dto/MappingProfile.cs index 7db2dd76..72bfda9f 100644 --- a/EnvelopeGenerator.Application/Common/Dto/MappingProfile.cs +++ b/EnvelopeGenerator.Application/Common/Dto/MappingProfile.cs @@ -35,6 +35,7 @@ public class MappingProfile : Profile CreateMap(); CreateMap(); CreateMap(); + CreateMap(); // DTO to Entity mappings CreateMap();