示例#1
0
 public override Task <int> SaveChangesAsync(CancellationToken cancellationToken = new CancellationToken())
 {
     ContextUtil.UpdateTimeStamps(ChangeTracker);
     return(base.SaveChangesAsync(cancellationToken));
 }
示例#2
0
 public override int SaveChanges(bool acceptAllChangesOnSuccess)
 {
     ContextUtil.UpdateTimeStamps(ChangeTracker);
     return(base.SaveChanges(acceptAllChangesOnSuccess));
 }