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:
parent
2bbfd96d62
commit
8ea7d47868
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user