Skip to content

Commit

Permalink
Try fix for DataProtectionKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
Webreaper committed Jul 15, 2022
1 parent a6cf3b3 commit 06c86c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Damselfly.Core/Models/ImageContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
var it = modelBuilder.Entity<ImageTag>();
it.HasKey(x => new { x.ImageId, x.TagId });

// Potential fix for https://github.com/dotnet/efcore/issues/28444
var dpk = modelBuilder.Entity<DataProtectionKey>();
dpk.HasKey(x => x.Id );

it.HasOne(p => p.Image)
.WithMany(p => p.ImageTags)
.HasForeignKey(p => p.ImageId)
Expand Down
4 changes: 2 additions & 2 deletions Damselfly.Web/Damselfly.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
<PackageReference Include="Microsoft.AspNetCore.Components.Web.Extensions" Version="5.0.0-preview9.20513.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="7.0.0-preview.6.22324.4" />
<PackageReference Include="MudBlazor" Version="6.0.11" />
<PackageReference Include="Serilog.AspNetCore" Version="5.0.0" />
<PackageReference Include="Blazored.Typeahead" Version="4.6.0" />
<PackageReference Include="Serilog.AspNetCore" Version="6.0.0" />
<PackageReference Include="Blazored.Typeahead" Version="4.7.0" />
<PackageReference Include="font-awesome" Version="4.7.0" />
<PackageReference Include="Tewr.Blazor.FileReader" Version="3.3.1.21360" />
<PackageReference Include="Radzen.Blazor" Version="3.19.5" />
Expand Down

0 comments on commit 06c86c2

Please sign in to comment.