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.
This commit is contained in:
2026-04-16 09:55:26 +02:00
parent d3d5ebac61
commit 6b1daf77cb

View File

@@ -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<InsertResultCommand, long>