From d6b914b9c842a58768d9398cb185ec9ac0166346 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 16:14:15 +0100 Subject: [PATCH] Add new DbSet properties to RecDbContext Expanded RecDbContext to include new DbSet properties for managing `Connections`, `Endpoints`, `EndpointAuths`, `Profiles`, and `RecActions`. These additions enable interaction with corresponding database tables/entities. Updated the `OnModelCreating` method to ensure proper configuration of the context. Removed an extraneous closing brace to maintain proper syntax. --- src/ReC.Infrastructure/RecDbContext.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ReC.Infrastructure/RecDbContext.cs b/src/ReC.Infrastructure/RecDbContext.cs index ff573ad..375a7f5 100644 --- a/src/ReC.Infrastructure/RecDbContext.cs +++ b/src/ReC.Infrastructure/RecDbContext.cs @@ -16,6 +16,16 @@ public class RecDbContext(DbContextOptions options) : DbContext(op 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; } + protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); @@ -26,4 +36,4 @@ public class RecDbContext(DbContextOptions options) : DbContext(op modelBuilder.Entity().HasNoKey(); } -} +} \ No newline at end of file