From 46b7ae29cde0d87719d26d20240f2c120b9eba65 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 12 Dec 2025 13:42:49 +0100 Subject: [PATCH] Update IRecDbContext DbSets and add new entity sets Changed DbSet properties to get/set in IRecDbContext, renamed Actions to RecActionViews for consistency, and added DbSets for Connections, Endpoints, EndpointAuths, Profiles, and RecActions. Updated RecDbContext implementation accordingly. --- .../Common/Interfaces/IRecDbContext.cs | 20 ++++++++++++++----- src/ReC.Infrastructure/RecDbContext.cs | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/ReC.Application/Common/Interfaces/IRecDbContext.cs b/src/ReC.Application/Common/Interfaces/IRecDbContext.cs index 7e1e78b..e0046fc 100644 --- a/src/ReC.Application/Common/Interfaces/IRecDbContext.cs +++ b/src/ReC.Application/Common/Interfaces/IRecDbContext.cs @@ -5,15 +5,25 @@ namespace ReC.Application.Common.Interfaces; public interface IRecDbContext { - public DbSet EndpointParams { get; } + public DbSet EndpointParams { get; set; } - public DbSet Actions { get; } + public DbSet RecActionViews { get; set; } - public DbSet OutRes { get; } + public DbSet OutRes { get; set; } - public DbSet HeaderQueryResults { get; } + public DbSet HeaderQueryResults { get; set; } - public DbSet BodyQueryResults { get; } + public DbSet BodyQueryResults { get; set; } + + public DbSet Connections { get; set; } + + public DbSet Endpoints { get; set; } + + public DbSet EndpointAuths { get; set; } + + public DbSet Profiles { get; set; } + + public DbSet RecActions { get; set; } public Task SaveChangesAsync(CancellationToken cancel = default); } \ No newline at end of file diff --git a/src/ReC.Infrastructure/RecDbContext.cs b/src/ReC.Infrastructure/RecDbContext.cs index 856a8c7..d84daf8 100644 --- a/src/ReC.Infrastructure/RecDbContext.cs +++ b/src/ReC.Infrastructure/RecDbContext.cs @@ -8,7 +8,7 @@ public class RecDbContext(DbContextOptions options) : DbContext(op { public DbSet EndpointParams { get; set; } - public DbSet Actions { get; set; } + public DbSet RecActionViews { get; set; } public DbSet OutRes { get; set; }