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.
This was the code for asp.net 4:
internal sealed class Configuration : DbMigrationsConfiguration<ApplicationDbContext>
{
public Configuration()
{
AutomaticMigrationsEnabled = true;
}
protected override void Seed(ApplicationDbContext context)
{
base.Seed(context);
//Add stuff to database
context.SaveChanges();
}
}
What is the equivalent in asp.net core?