From f9a4d9349506f7ea980fc639f691f1f1c9c8407c Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 10 Dec 2025 11:47:58 +0100 Subject: [PATCH] Add OutRes entity mapping to RecDbContext Configured OutRes entity to map to TBREC_OUT_RESULT table, including primary key and property-to-column mappings. --- src/ReC.Infrastructure/RecDbContext.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/ReC.Infrastructure/RecDbContext.cs b/src/ReC.Infrastructure/RecDbContext.cs index 3a64e73..a82a7b1 100644 --- a/src/ReC.Infrastructure/RecDbContext.cs +++ b/src/ReC.Infrastructure/RecDbContext.cs @@ -49,6 +49,25 @@ public class RecDbContext(DbContextOptions options) : DbContext(op b.Property(e => e.ChangedWhen).HasColumnName("CHANGED_WHEN"); }); + modelBuilder.Entity(b => + { + b.ToTable("TBREC_OUT_RESULT", "dbo"); + + b.HasKey(e => e.Id); + + b.Property(e => e.Id) + .HasColumnName("GUID") + .ValueGeneratedOnAdd(); + + b.Property(e => e.ActionId).HasColumnName("ACTION_ID"); + 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"); + b.Property(e => e.ChangedWhen).HasColumnName("CHANGED_WHEN"); + }); + modelBuilder.Entity(b => { b.ToTable("VWREC_ACTION", "dbo");