Rename ResultHeader/ResultBody to Header/Body in RecResultView

Renamed the ResultHeader and ResultBody properties in the RecResultView class to Header and Body. Updated the RecDbContext entity configuration to map these new property names to the existing RESULT_HEADER and RESULT_BODY database columns. No changes were made to the database schema.
This commit is contained in:
2025-12-15 16:35:15 +01:00
parent edc1de2034
commit 2a749267b3
2 changed files with 4 additions and 4 deletions

View File

@@ -14,9 +14,9 @@ public class RecResultView
public string? Status { get; set; }
public string? ResultHeader { get; set; }
public string? Header { get; set; }
public string? ResultBody { get; set; }
public string? Body { get; set; }
public string AddedWho { get; set; } = null!;

View File

@@ -274,8 +274,8 @@ public class RecDbContext(DbContextOptions<RecDbContext> options) : DbContext(op
b.Property(e => e.ProfileName).HasColumnName("PROFILE_NAME");
b.Property(e => e.StatusId).HasColumnName("STATUS_ID");
b.Property(e => e.Status).HasColumnName("STATUS");
b.Property(e => e.ResultHeader).HasColumnName("RESULT_HEADER");
b.Property(e => e.ResultBody).HasColumnName("RESULT_BODY");
b.Property(e => e.Header).HasColumnName("RESULT_HEADER");
b.Property(e => e.Body).HasColumnName("RESULT_BODY");
b.Property(e => e.AddedWho).HasColumnName("ADDED_WHO");
b.Property(e => e.AddedWhen).HasColumnName("ADDED_WHEN");
b.Property(e => e.ChangedWho).HasColumnName("CHANGED_WHO");