fix(EGDbContext): Unnötige Trigger-Konfiguration entfernt
This commit is contained in:
parent
f9c34ef8fd
commit
934414c3b6
@ -147,12 +147,6 @@ public class EGDbContext : DbContext, IUserManagerDbContext, IMailDbContext
|
|||||||
.HasPrincipalKey(r => r.EmailAddress);
|
.HasPrincipalKey(r => r.EmailAddress);
|
||||||
|
|
||||||
// Configure entities to handle database triggers
|
// Configure entities to handle database triggers
|
||||||
modelBuilder.Entity<Envelope>().ToTable(tb => tb.HasTrigger("TBSIG_ENVELOPE_HISTORY_AFT_INS"));
|
|
||||||
modelBuilder.Entity<EnvelopeHistory>().ToTable(tb => tb.HasTrigger("TBSIG_ENVELOPE_HISTORY_AFT_INS"));
|
|
||||||
modelBuilder.Entity<EmailOut>().ToTable(tb => tb.HasTrigger("TBEMLP_EMAIL_OUT_AFT_INS"));
|
|
||||||
modelBuilder.Entity<EmailOut>().ToTable(tb => tb.HasTrigger("TBEMLP_EMAIL_OUT_AFT_UPD"));
|
|
||||||
modelBuilder.Entity<EnvelopeReceiverReadOnly>().ToTable(tb => tb.HasTrigger("TBSIG_ENVELOPE_RECEIVER_READ_ONLY_UPD"));
|
|
||||||
|
|
||||||
void AddTrigger<T>() where T : class => _triggers
|
void AddTrigger<T>() where T : class => _triggers
|
||||||
.Where(t => t.Key == typeof(T).Name)
|
.Where(t => t.Key == typeof(T).Name)
|
||||||
.SelectMany(t => t.Value)
|
.SelectMany(t => t.Value)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user