Add obsolete DbSets and transition to Views in RecDbContext
Several new DbSet properties were added to the RecDbContext
class, marked as `[Obsolete("Use Views instead.")]`. These
include `EndpointParams`, `OutRes`, `Connections`, `Endpoints`,
`EndpointAuths`, `Profiles`, and `RecActions`.
Non-obsolete DbSets such as `RecActionViews`, `ProfileViews`,
`RecResultViews`, `HeaderQueryResults`, `BodyQueryResults`,
and `RecResults` were also added or retained.
These changes indicate a shift towards using Views for database
operations while maintaining backward compatibility with the
older DbSet properties.
This commit is contained in:
@@ -9,6 +9,7 @@ namespace ReC.Infrastructure;
|
|||||||
public class RecDbContext(DbContextOptions<RecDbContext> options) : DbContext(options), IRecDbContext
|
public class RecDbContext(DbContextOptions<RecDbContext> options) : DbContext(options), IRecDbContext
|
||||||
{
|
{
|
||||||
#region DB Sets
|
#region DB Sets
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
public DbSet<EndpointParam> EndpointParams { get; set; }
|
public DbSet<EndpointParam> EndpointParams { get; set; }
|
||||||
|
|
||||||
public DbSet<RecActionView> RecActionViews { get; set; }
|
public DbSet<RecActionView> RecActionViews { get; set; }
|
||||||
@@ -17,20 +18,26 @@ public class RecDbContext(DbContextOptions<RecDbContext> options) : DbContext(op
|
|||||||
|
|
||||||
public DbSet<ResultView> RecResultViews { get; set; }
|
public DbSet<ResultView> RecResultViews { get; set; }
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
public DbSet<OutRes> OutRes { get; set; }
|
public DbSet<OutRes> OutRes { get; set; }
|
||||||
|
|
||||||
public DbSet<HeaderQueryResult> HeaderQueryResults { get; set; }
|
public DbSet<HeaderQueryResult> HeaderQueryResults { get; set; }
|
||||||
|
|
||||||
public DbSet<BodyQueryResult> BodyQueryResults { get; set; }
|
public DbSet<BodyQueryResult> BodyQueryResults { get; set; }
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
public DbSet<Connection> Connections { get; set; }
|
public DbSet<Connection> Connections { get; set; }
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
public DbSet<Endpoint> Endpoints { get; set; }
|
public DbSet<Endpoint> Endpoints { get; set; }
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
public DbSet<EndpointAuth> EndpointAuths { get; set; }
|
public DbSet<EndpointAuth> EndpointAuths { get; set; }
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
public DbSet<Profile> Profiles { get; set; }
|
public DbSet<Profile> Profiles { get; set; }
|
||||||
|
|
||||||
|
[Obsolete("Use Views instead.")]
|
||||||
public DbSet<RecAction> RecActions { get; set; }
|
public DbSet<RecAction> RecActions { get; set; }
|
||||||
|
|
||||||
public DbSet<InsertObjectResult> RecResults { get; set; }
|
public DbSet<InsertObjectResult> RecResults { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user