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>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public record CreateHistoryCommand: EnvelopeReceiverQueryBase, IRequest<long?>
|
public record CreateHistoryCommand : EnvelopeReceiverQueryBase, IRequest<long?>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
|||||||
@ -155,8 +155,7 @@ public class EGDbContext : DbContext, IUserManagerDbContext, IMailDbContext
|
|||||||
modelBuilder.Entity<DocumentStatus>()
|
modelBuilder.Entity<DocumentStatus>()
|
||||||
.HasOne(ds => ds.Envelope)
|
.HasOne(ds => ds.Envelope)
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey(ds => ds.EnvelopeId)
|
.HasForeignKey(ds => ds.EnvelopeId);
|
||||||
.HasPrincipalKey(e => e.Uuid);
|
|
||||||
|
|
||||||
modelBuilder.Entity<DocumentStatus>()
|
modelBuilder.Entity<DocumentStatus>()
|
||||||
.HasOne(ds => ds.Receiver)
|
.HasOne(ds => ds.Receiver)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user