From 6b1daf77cb6781ce0819c3ba54dbfdfbe1df4555 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 16 Apr 2026 09:55:26 +0200 Subject: [PATCH] Make References required in InsertResultCommand Changed the References property in InsertResultCommand from a nullable type to required. References must now always be provided and cannot be null when creating an InsertResultCommand instance. This enforces stricter data integrity for command creation. --- src/ReC.Application/Results/Commands/InsertResultCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReC.Application/Results/Commands/InsertResultCommand.cs b/src/ReC.Application/Results/Commands/InsertResultCommand.cs index 48d9fef..0fcc838 100644 --- a/src/ReC.Application/Results/Commands/InsertResultCommand.cs +++ b/src/ReC.Application/Results/Commands/InsertResultCommand.cs @@ -15,7 +15,7 @@ public record InsertResultCommand : IInsertProcedure public string? InfoDetail { get; set; } public string? Error { get; set; } public required ResultType Type { get; set; } - public InvokeReferences? References { get; set; } + public required InvokeReferences References { get; set; } } public class InsertResultProcedureHandler(ISender sender) : IRequestHandler