Added DbSet properties for EndpointParam, RecActionView, and ProfileView to both IRecDbContext and RecDbContext. This enables querying and interaction with these entities and views in the database. Grouped the new DbSets under a #region for better code organization.
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using ReC.Domain.Entities;
|
|
using ReC.Domain.QueryOutput;
|
|
using ReC.Domain.Views;
|
|
|
|
namespace ReC.Application.Common.Interfaces;
|
|
|
|
public interface IRecDbContext
|
|
{
|
|
#region DbSets
|
|
public DbSet<EndpointParam> EndpointParams { get; set; }
|
|
|
|
public DbSet<RecActionView> RecActionViews { get; set; }
|
|
|
|
public DbSet<ProfileView> ProfileViews { get; set; }
|
|
|
|
public DbSet<ResultView> RecResultViews { get; set; }
|
|
|
|
public DbSet<OutRes> OutRes { get; set; }
|
|
|
|
public DbSet<HeaderQueryResult> HeaderQueryResults { 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; }
|
|
|
|
public DbSet<InsertObjectResult> RecResults { get; set; }
|
|
#endregion DbSets
|
|
|
|
public Task<int> SaveChangesAsync(CancellationToken cancel = default);
|
|
} |