Add DbSets and configure keyless entity in RecDbContext

Added `HeaderQueryResults` and `BodyQueryResults` DbSet
properties to the `RecDbContext` class for interacting
with `HeaderQueryResult` and `BodyQueryResult` entities.

Overrode the `OnModelCreating` method to configure the
`RecAction` entity as keyless using
`modelBuilder.Entity<RecAction>().HasNoKey()`.
This commit is contained in:
tekh 2025-11-27 16:40:33 +01:00
parent 2bbfd96d62
commit 8ea7d47868

View File

@ -11,6 +11,10 @@ public class RecDbContext(DbContextOptions<RecDbContext> options) : DbContext(op
public DbSet<OutRes> OutRes { get; set; } public DbSet<OutRes> OutRes { get; set; }
public DbSet<HeaderQueryResult> HeaderQueryResults { get; set; }
public DbSet<BodyQueryResult> BodyQueryResults { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder) protected override void OnModelCreating(ModelBuilder modelBuilder)
{ {
base.OnModelCreating(modelBuilder); base.OnModelCreating(modelBuilder);