From 35e03269e70f26b4274ee02b160eee6ddb2aab0e Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 14 Jan 2026 12:00:36 +0100 Subject: [PATCH] Add DbSets for EndpointParam and view entities Added DbSet properties for EndpointParam, RecActionView, and ProfileView to both IRecDbContext and RecDbContext. This enables querying and interaction with these entities and views in the database. Grouped the new DbSets under a #region for better code organization. --- src/ReC.Application/Common/Interfaces/IRecDbContext.cs | 2 ++ src/ReC.Infrastructure/RecDbContext.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/ReC.Application/Common/Interfaces/IRecDbContext.cs b/src/ReC.Application/Common/Interfaces/IRecDbContext.cs index 36006af..9341337 100644 --- a/src/ReC.Application/Common/Interfaces/IRecDbContext.cs +++ b/src/ReC.Application/Common/Interfaces/IRecDbContext.cs @@ -7,6 +7,7 @@ namespace ReC.Application.Common.Interfaces; public interface IRecDbContext { + #region DbSets public DbSet EndpointParams { get; set; } public DbSet RecActionViews { get; set; } @@ -32,6 +33,7 @@ public interface IRecDbContext public DbSet RecActions { get; set; } public DbSet RecResults { get; set; } + #endregion DbSets 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 df02646..d2918db 100644 --- a/src/ReC.Infrastructure/RecDbContext.cs +++ b/src/ReC.Infrastructure/RecDbContext.cs @@ -8,6 +8,7 @@ namespace ReC.Infrastructure; public class RecDbContext(DbContextOptions options) : DbContext(options), IRecDbContext { + #region DB Sets public DbSet EndpointParams { get; set; } public DbSet RecActionViews { get; set; } @@ -33,6 +34,7 @@ public class RecDbContext(DbContextOptions options) : DbContext(op public DbSet RecActions { get; set; } public DbSet RecResults { get; set; } + #endregion DB Sets // TODO: Update to configure via appsettings.json protected override void OnModelCreating(ModelBuilder modelBuilder)