Interface IAppDbContext
- Namespace
- Integrations.Application.Common
- Assembly
- Integrations.Application.dll
Persistence used by the application services. Implemented by the Postgres DbContext.
public interface IAppDbContext
Properties
AdminAudit
Append-only log of money and configuration changes (who, what, when).
DbSet<AdminAuditEntry> AdminAudit { get; }
Property Value
CertificateExpiryNotices
Expiry notices already sent (so each is sent once).
DbSet<CertificateExpiryNotice> CertificateExpiryNotices { get; }
Property Value
CertificateRequests
Certificate invites and resale-certificate requests.
DbSet<CertificateRequest> CertificateRequests { get; }
Property Value
Entities
Configured legal entities (PVC, DXT-CA, ...).
DbSet<LegalEntity> Entities { get; }
Property Value
ExchangeRates
Daily exchange rates (immutable once stored).
DbSet<ExchangeRateObservation> ExchangeRates { get; }
Property Value
Parties
Customers and vendors and their sync state with the provider.
DbSet<PartySyncRecord> Parties { get; }
Property Value
ProviderCallAudits
One row per external provider call.
DbSet<ProviderCallAudit> ProviderCallAudits { get; }
Property Value
RateLocks
Exchange-rate locks.
DbSet<RateLock> RateLocks { get; }
Property Value
ReconciliationIssues
Differences found by the nightly reconciliation.
DbSet<ReconciliationIssue> ReconciliationIssues { get; }
Property Value
TaxCodeMappings
Work type / category to tax code mappings.
DbSet<TaxCodeMapping> TaxCodeMappings { get; }
Property Value
TaxDocuments
Tax documents with their lines and jurisdiction details.
DbSet<TaxDocument> TaxDocuments { get; }
Property Value
Methods
IsUniqueViolation(DbUpdateException)
True when the save failed on a unique index (a concurrent insert won the race).
bool IsUniqueViolation(DbUpdateException exception)
Parameters
exceptionDbUpdateException
Returns
SaveChangesAsync(CancellationToken)
Saves pending changes (and the outbox messages queued with them) in one transaction.
Task<int> SaveChangesAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken