Add Info, InfoDetail, and Error to UpdateResultDto

Extended UpdateResultDto with Info, InfoDetail, and Error fields. Updated UpdateObjectProcedureHandler to pass these new properties as parameters to the stored procedure, enabling richer result and error reporting in database updates.
This commit is contained in:
2026-04-02 20:37:29 +02:00
parent d7a2a01421
commit a93780df5c
2 changed files with 7 additions and 1 deletions

View File

@@ -6,4 +6,7 @@ public record UpdateResultDto
public short? StatusId { get; set; }
public string? Header { get; set; }
public string? Body { get; set; }
public string? Info { get; set; }
public string? InfoDetail { get; set; }
public string? Error { get; set; }
}

View File

@@ -88,7 +88,10 @@ public class UpdateObjectProcedureHandler(IRepository repo, IOptionsMonitor<SqlE
.Add("pRESULT_ACTION_ID", request.Result.ActionId)
.Add("pRESULT_STATUS_ID", request.Result.StatusId, SqlDbType.SmallInt)
.Add("pRESULT_HEADER", request.Result.Header)
.Add("pRESULT_BODY", request.Result.Body);
.Add("pRESULT_BODY", request.Result.Body)
.Add("pRESULT_INFO", request.Result.Info)
.Add("pRESULT_INFO_DETAIL", request.Result.InfoDetail)
.Add("pRESULT_ERROR", request.Result.Error);
try
{