arch / AutoHistory

A plugin for Microsoft.EntityFrameworkCore to support automatically recording data changes history.
MIT License
779 stars 109 forks source link

Improve Readme file. #60

Closed mo-esmp closed 3 years ago

mo-esmp commented 3 years ago

To record data changes for all entities without need calling bloggingContext.EnsureAutoHistory() before each SaveChanges:

public override int SaveChanges()
{
    this.EnsureAutoHistory();
    return base.SaveChanges();
}