Remove obsolete DbSets from IRecDbContext interface
Removed DbSet properties for entities marked as obsolete in IRecDbContext, including EndpointParam, OutRes, Connection, Endpoint, EndpointAuth, Profile, and RecAction. Retained only DbSets for views and query results to encourage use of views instead of direct entity access. This streamlines the interface and aligns with the intended data access pattern.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using ReC.Domain.Entities;
|
||||
using ReC.Domain.QueryOutput;
|
||||
using ReC.Domain.Views;
|
||||
|
||||
@@ -8,37 +7,16 @@ namespace ReC.Application.Common.Interfaces;
|
||||
public interface IRecDbContext
|
||||
{
|
||||
#region DbSets
|
||||
[Obsolete("Use Views instead.")]
|
||||
public DbSet<EndpointParam> EndpointParams { get; set; }
|
||||
|
||||
public DbSet<RecActionView> RecActionViews { get; set; }
|
||||
|
||||
public DbSet<ProfileView> ProfileViews { get; set; }
|
||||
|
||||
public DbSet<ResultView> RecResultViews { get; set; }
|
||||
|
||||
[Obsolete("Use Views instead.")]
|
||||
public DbSet<OutRes> OutRes { get; set; }
|
||||
|
||||
public DbSet<HeaderQueryResult> HeaderQueryResults { get; set; }
|
||||
|
||||
public DbSet<BodyQueryResult> BodyQueryResults { get; set; }
|
||||
|
||||
[Obsolete("Use Views instead.")]
|
||||
public DbSet<Connection> Connections { get; set; }
|
||||
|
||||
[Obsolete("Use Views instead.")]
|
||||
public DbSet<Endpoint> Endpoints { get; set; }
|
||||
|
||||
[Obsolete("Use Views instead.")]
|
||||
public DbSet<Domain.Entities.EndpointAuth> EndpointAuths { get; set; }
|
||||
|
||||
[Obsolete("Use Views instead.")]
|
||||
public DbSet<Domain.Entities.Profile> Profiles { get; set; }
|
||||
|
||||
[Obsolete("Use Views instead.")]
|
||||
public DbSet<RecAction> RecActions { get; set; }
|
||||
|
||||
public DbSet<InsertObjectResult> RecResults { get; set; }
|
||||
#endregion DbSets
|
||||
|
||||
|
||||
Reference in New Issue
Block a user