From 8738c158044eb18745ea6a56f55efebcc8aa2902 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 10 Dec 2025 11:34:28 +0100 Subject: [PATCH] Configure EndpointParam entity in RecDbContext Added mapping for EndpointParam to TBREC_CFG_ENDPOINT_PARAMS table, including key and property-to-column configurations in OnModelCreating. --- 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 f7d023a..3a64e73 100644 --- a/src/ReC.Infrastructure/RecDbContext.cs +++ b/src/ReC.Infrastructure/RecDbContext.cs @@ -30,6 +30,25 @@ public class RecDbContext(DbContextOptions options) : DbContext(op { base.OnModelCreating(modelBuilder); + modelBuilder.Entity(b => + { + b.ToTable("TBREC_CFG_ENDPOINT_PARAMS", "dbo"); + + b.HasKey(e => e.Id); + + b.Property(e => e.Id).HasColumnName("GUID"); + b.Property(e => e.Active).HasColumnName("ACTIVE"); + b.Property(e => e.Description).HasColumnName("DESCRIPTION"); + b.Property(e => e.GroupId).HasColumnName("GROUP_ID"); + b.Property(e => e.Sequence).HasColumnName("SEQUENCE"); + b.Property(e => e.Key).HasColumnName("KEY"); + b.Property(e => e.Value).HasColumnName("VALUE"); + 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");