refactor: remove HasPrincipalKey-statement
This commit is contained in:
parent
3616d43f2e
commit
79dc4ba599
@ -165,8 +165,7 @@ public class EGDbContext : DbContext, IUserManagerDbContext, IMailDbContext
|
||||
modelBuilder.Entity<DocumentStatus>()
|
||||
.HasOne(ds => ds.Receiver)
|
||||
.WithMany()
|
||||
.HasForeignKey(ds => ds.ReceiverId)
|
||||
.HasPrincipalKey(e => e.EmailAddress);
|
||||
.HasForeignKey(ds => ds.ReceiverId);
|
||||
|
||||
// Configure entities to handle database triggers
|
||||
void AddTrigger<T>() where T : class => _triggers
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user