Files
components/LiteCharms.Features/Postgres/DataProtectionDbContext.cs
T
Khwezi Mngoma cf439c5006
continuous-integration/drone/pr Build is passing
Ensure uninherited types are sealed
Resolved mediator source geenrator conflict with tests
2026-06-15 10:27:44 +02:00

14 lines
511 B
C#

namespace LiteCharms.Features.Postgres;
public sealed class DataProtectionDbContext(DbContextOptions<DataProtectionDbContext> options) : DbContext(options), IDataProtectionKeyContext
{
public DbSet<DataProtectionKey> DataProtectionKeys { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.Entity<DataProtectionKey>(entity => entity.ToTable(nameof(DataProtectionKeys), schema: "security"));
}
}