Closed mo-esmp closed 3 years ago
To record data changes for all entities without need calling bloggingContext.EnsureAutoHistory() before each SaveChanges:
bloggingContext.EnsureAutoHistory()
SaveChanges
public override int SaveChanges() { this.EnsureAutoHistory(); return base.SaveChanges(); }
To record data changes for all entities without need calling
bloggingContext.EnsureAutoHistory()
before eachSaveChanges
: