-
Notifications
You must be signed in to change notification settings - Fork 306
Expand file tree
/
Copy pathIApplicationDbContext.cs
More file actions
24 lines (19 loc) · 900 Bytes
/
IApplicationDbContext.cs
File metadata and controls
24 lines (19 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using CleanArchitecture.Blazor.Domain.Entities;
using Microsoft.AspNetCore.DataProtection.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking;
namespace CleanArchitecture.Blazor.Application.Common.Interfaces;
public interface IApplicationDbContext
{
DbSet<SystemLog> SystemLogs { get; set; }
DbSet<AuditTrail> AuditTrails { get; set; }
DbSet<Document> Documents { get; set; }
DbSet<PicklistSet> PicklistSets { get; set; }
DbSet<Product> Products { get; set; }
DbSet<Tenant> Tenants { get; set; }
DbSet<Contact> Contacts { get; set; }
ChangeTracker ChangeTracker { get; }
DbSet<DataProtectionKey> DataProtectionKeys { get; set; }
Task<int> SaveChangesAsync(CancellationToken cancellationToken);
}