Skip to content

Commit abb4428

Browse files
committed
deployment xml issue fix
1 parent a296604 commit abb4428

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/Data/ApplicationDBContext.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using Microsoft.AspNetCore.Identity;
22
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
3+
using Microsoft.AspNetCore.DataProtection.EntityFrameworkCore;
34
using Microsoft.EntityFrameworkCore;
45

56
namespace 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
{

0 commit comments

Comments
 (0)