arch / AutoHistory

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

feat: add default value for EnableAutoHistory #57

Closed FrediKats closed 3 years ago

FrediKats commented 3 years ago

Sample from readme is not work:

public class BloggingContext : DbContext
{
    public BloggingContext(DbContextOptions<BloggingContext> options)
        : base(options)
    { }

    public DbSet<Blog> Blogs { get; set; }
    public DbSet<Post> Posts { get; set; }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        // enable auto history functionality.
        modelBuilder.EnableAutoHistory();
    }
}

Add missed argument default value for method EnableAutoHistory.

rigofunc commented 3 years ago

thanks