Skip to content

Commit 06485f3

Browse files
committed
Add Data Protection Table
1 parent 571addc commit 06485f3

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

EmailService-API/EmailService-API.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.10" />
13+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.22" />
14+
<PackageReference Include="Microsoft.AspNetCore.DataProtection.EntityFrameworkCore" Version="8.0.22" />
1415
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.2" />
15-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.10" />
16-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.10" />
17-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.10" />
16+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.22" />
17+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.22" />
18+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.22" />
1819
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
1920
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2021
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />

EmailService-API/Models/EmailServiceContext.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
using System.Configuration;
55
using System.Data.SqlClient;
66
using Microsoft.Extensions.Configuration;
7+
using Microsoft.AspNetCore.DataProtection.EntityFrameworkCore;
78
using System.IO;
89

910
namespace EmailService_API.Models
1011
{
11-
public partial class EmailServiceContext : DbContext
12+
public partial class EmailServiceContext : DbContext, IDataProtectionKeyContext
1213
{
1314
public EmailServiceContext()
1415
{
@@ -21,6 +22,7 @@ public EmailServiceContext(DbContextOptions<EmailServiceContext> options)
2122

2223
public virtual DbSet<EnqueueIncomingMessage> EnqueueIncomingMessages { get; set; }
2324
public virtual DbSet<ApiKey> ApiKeys { get; set; }
25+
public DbSet<DataProtectionKey> DataProtectionKeys { get; set; }
2426

2527
protected override void OnModelCreating(ModelBuilder modelBuilder)
2628
{

0 commit comments

Comments
 (0)