Esempio n. 1
0
 public override void OnPostSaveChanges(DbContext context)
 {
     this.auditContext.SaveChanges();
     this.auditContext.Dispose();
     this.auditContext = null;
     base.OnPostSaveChanges(context);
 }
Esempio n. 2
0
 public override void OnPreSaveChanges(DbContext context)
 {
     this.auditContext = new EntityAuditDbContext(context.Database.Connection);
     base.OnPreSaveChanges(context);
 }