Files
components/LiteCharms.Features/Postgres/DataProtectionDbContext.cs
T
Khwezi Mngoma 4e9e428ab5
continuous-integration/drone/pr Build is passing
Added data protection database based support
2026-06-14 09:57:24 +02:00

14 lines
504 B
C#

namespace LiteCharms.Features.Postgres;
public 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"));
}
}