Files
hermes 32a80eb84d Implemented security functionality
Added data protection feature
Migrated changes
2026-08-20 15:15:54 +02:00

15 lines
585 B
C#

using Microsoft.AspNetCore.DataProtection.EntityFrameworkCore;
namespace PostFundManagement.Infrastructure.Database;
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"));
}
}