From d5443b223cbbbd4cf31452a02736289d4109ded1 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 27 Aug 2025 15:12:09 +0200 Subject: [PATCH] fix(EGDbContext); remove Uuid from principal key --- .../Histories/Commands/CreateHistoryCommand.cs | 2 +- EnvelopeGenerator.Infrastructure/EGDbContext.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/EnvelopeGenerator.Application/Histories/Commands/CreateHistoryCommand.cs b/EnvelopeGenerator.Application/Histories/Commands/CreateHistoryCommand.cs index efa9aa79..66417154 100644 --- a/EnvelopeGenerator.Application/Histories/Commands/CreateHistoryCommand.cs +++ b/EnvelopeGenerator.Application/Histories/Commands/CreateHistoryCommand.cs @@ -11,7 +11,7 @@ namespace EnvelopeGenerator.Application.Histories.Commands; /// /// /// -public record CreateHistoryCommand: EnvelopeReceiverQueryBase, IRequest +public record CreateHistoryCommand : EnvelopeReceiverQueryBase, IRequest { /// /// diff --git a/EnvelopeGenerator.Infrastructure/EGDbContext.cs b/EnvelopeGenerator.Infrastructure/EGDbContext.cs index c8a370f3..0135efd3 100644 --- a/EnvelopeGenerator.Infrastructure/EGDbContext.cs +++ b/EnvelopeGenerator.Infrastructure/EGDbContext.cs @@ -155,8 +155,7 @@ public class EGDbContext : DbContext, IUserManagerDbContext, IMailDbContext modelBuilder.Entity() .HasOne(ds => ds.Envelope) .WithMany() - .HasForeignKey(ds => ds.EnvelopeId) - .HasPrincipalKey(e => e.Uuid); + .HasForeignKey(ds => ds.EnvelopeId); modelBuilder.Entity() .HasOne(ds => ds.Receiver)