File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11using Microsoft . AspNetCore . Identity ;
22using Microsoft . AspNetCore . Identity . EntityFrameworkCore ;
3+ using Microsoft . AspNetCore . DataProtection . EntityFrameworkCore ;
34using Microsoft . EntityFrameworkCore ;
45
56namespace server . Models ;
67
7- public class ApplicationDBContext : IdentityDbContext < User >
8+ public class ApplicationDBContext : IdentityDbContext < User > , IDataProtectionKeyContext
89{
910 public ApplicationDBContext ( DbContextOptions < ApplicationDBContext > options )
1011 : base ( options )
@@ -28,6 +29,9 @@ public ApplicationDBContext(DbContextOptions<ApplicationDBContext> options)
2829 public DbSet < AccountLog > AccountLogs { get ; set ; }
2930 public DbSet < VaultLog > VaultLogs { get ; set ; }
3031 public DbSet < Notification > Notifications { get ; set ; }
32+
33+ // Data Protection Keys (for ASP.NET Core Data Protection)
34+ public DbSet < DataProtectionKey > DataProtectionKeys { get ; set ; } = null ! ;
3135
3236 protected override void OnModelCreating ( ModelBuilder builder )
3337 {
You can’t perform that action at this time.
0 commit comments