From d8c74994364a97252462cc8233e87a8108b65200 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 16 Apr 2026 09:58:46 +0200 Subject: [PATCH] Add BatchId and AddedWho to DTO; make BatchId nullable Added BatchId and AddedWho properties to ResultViewDto. Changed BatchId in ResultView from required to nullable to align with DTO and support optional batch IDs. --- src/ReC.Application/Common/Dto/ResultViewDto.cs | 2 ++ src/ReC.Domain/Views/ResultView.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ReC.Application/Common/Dto/ResultViewDto.cs b/src/ReC.Application/Common/Dto/ResultViewDto.cs index d1975e7..bb59031 100644 --- a/src/ReC.Application/Common/Dto/ResultViewDto.cs +++ b/src/ReC.Application/Common/Dto/ResultViewDto.cs @@ -30,6 +30,8 @@ public record ResultViewDto public string? Error { get; set; } + public string? BatchId { get; set; } + public string? AddedWho { get; init; } public DateTime? AddedWhen { get; init; } diff --git a/src/ReC.Domain/Views/ResultView.cs b/src/ReC.Domain/Views/ResultView.cs index 2c1b6fe..1af9064 100644 --- a/src/ReC.Domain/Views/ResultView.cs +++ b/src/ReC.Domain/Views/ResultView.cs @@ -55,7 +55,7 @@ public class ResultView public string? Error { get; set; } [Column("BATCH_ID")] - public required string BatchId { get; set; } + public string? BatchId { get; set; } [Column("REFERENCE1")] public string? Reference1 { get; set; }