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.
This commit is contained in:
tekh 2025-12-01 16:14:15 +01:00
parent d764668cd7
commit d6b914b9c8

View File

@ -16,6 +16,16 @@ public class RecDbContext(DbContextOptions<RecDbContext> options) : DbContext(op
public DbSet<BodyQueryResult> BodyQueryResults { get; set; } public DbSet<BodyQueryResult> BodyQueryResults { get; set; }
public DbSet<Connection> Connections { get; set; }
public DbSet<Endpoint> Endpoints { get; set; }
public DbSet<EndpointAuth> EndpointAuths { get; set; }
public DbSet<Profile> Profiles { get; set; }
public DbSet<RecAction> RecActions { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder) protected override void OnModelCreating(ModelBuilder modelBuilder)
{ {
base.OnModelCreating(modelBuilder); base.OnModelCreating(modelBuilder);
@ -26,4 +36,4 @@ public class RecDbContext(DbContextOptions<RecDbContext> options) : DbContext(op
modelBuilder.Entity<BodyQueryResult>().HasNoKey(); modelBuilder.Entity<BodyQueryResult>().HasNoKey();
} }
} }