28 lines
799 B
C#
28 lines
799 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using PnvPanel.Domain.Activation;
|
|
using PnvPanel.Domain.Apps;
|
|
using PnvPanel.Domain.Configs;
|
|
using PnvPanel.Domain.Inbounds;
|
|
using PnvPanel.Domain.Nodes;
|
|
|
|
namespace PnvPanel.Application.Common.Interfaces;
|
|
|
|
public interface IAppDbContext
|
|
{
|
|
DbSet<ActivationRequest> ActivationRequests { get; }
|
|
|
|
DbSet<Node> Nodes { get; }
|
|
|
|
DbSet<Inbound> Inbounds { get; }
|
|
|
|
DbSet<VpnConfig> VpnConfigs { get; }
|
|
|
|
DbSet<ClientApp> ClientApps { get; }
|
|
|
|
/// <summary>Нужен для advisory-lock при проверке квоты конфигов (см. CreateVpnConfigCommandHandler).</summary>
|
|
DatabaseFacade Database { get; }
|
|
|
|
Task<int> SaveChangesAsync(CancellationToken cancellationToken);
|
|
}
|