fix(EGDbContext); remove Uuid from principal key
This commit is contained in:
parent
c456cb0301
commit
d5443b223c
@ -11,7 +11,7 @@ namespace EnvelopeGenerator.Application.Histories.Commands;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public record CreateHistoryCommand: EnvelopeReceiverQueryBase, IRequest<long?>
|
||||
public record CreateHistoryCommand : EnvelopeReceiverQueryBase, IRequest<long?>
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
|
||||
@ -155,8 +155,7 @@ public class EGDbContext : DbContext, IUserManagerDbContext, IMailDbContext
|
||||
modelBuilder.Entity<DocumentStatus>()
|
||||
.HasOne(ds => ds.Envelope)
|
||||
.WithMany()
|
||||
.HasForeignKey(ds => ds.EnvelopeId)
|
||||
.HasPrincipalKey(e => e.Uuid);
|
||||
.HasForeignKey(ds => ds.EnvelopeId);
|
||||
|
||||
modelBuilder.Entity<DocumentStatus>()
|
||||
.HasOne(ds => ds.Receiver)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user