Beispiel #1
0
 public override int SaveChanges()
 {
     try
     {
         EFHelper.ApplyAuditRules(this);
         var saved = base.SaveChanges();
         return(saved);
     }
     catch (DbUpdateException)
     {
         throw;
     }
 }
Beispiel #2
0
 public override Task <int> SaveChangesAsync(CancellationToken cancellationToken = default(CancellationToken))
 {
     EFHelper.ApplyAuditRules(this);
     return(base.SaveChangesAsync(cancellationToken));
 }