fix(EGDbContext): add Envelope-property to Envelope-History relation definition on model builder
This commit is contained in:
@@ -117,7 +117,7 @@ public class EGDbContext : DbContext, IUserManagerDbContext, IMailDbContext
|
||||
|
||||
modelBuilder.Entity<Envelope>()
|
||||
.HasMany(e => e.Histories)
|
||||
.WithOne()
|
||||
.WithOne(h => h.Envelope)
|
||||
.HasForeignKey(hist => hist.EnvelopeId);
|
||||
#endregion Envelope
|
||||
|
||||
@@ -174,11 +174,6 @@ public class EGDbContext : DbContext, IUserManagerDbContext, IMailDbContext
|
||||
.WithMany()
|
||||
.HasForeignKey(ds => ds.EnvelopeId);
|
||||
|
||||
modelBuilder.Entity<DocumentStatus>()
|
||||
.HasOne(ds => ds.Receiver)
|
||||
.WithMany()
|
||||
.HasForeignKey(ds => ds.ReceiverId);
|
||||
|
||||
modelBuilder.Entity<DocumentStatus>()
|
||||
.HasOne(ds => ds.Receiver)
|
||||
.WithMany()
|
||||
|
||||
Reference in New Issue
Block a user