Asp.net core code first database migrations
<p>How do we use data migrations in asp.net core? I'v tried looking through the asp.net core documentation but couldn't find anything.</p>

<p>This was the code for asp.net 4:</p>

<pre><code>internal sealed class Configuration : DbMigrationsConfiguration&lt;ApplicationDbContext&gt;
{
    public Configuration()
    {
        AutomaticMigrationsEnabled = true;
    }

    protected override void Seed(ApplicationDbContext context)
    {
        base.Seed(context);

        //Add stuff to database

        context.SaveChanges();
    }
}
</code></pre>

<p>What is the equivalent in asp.net core?</p>