using BHServer.Models; using Microsoft.EntityFrameworkCore; namespace BHServer.Data { public class ApplicationDbContext : DbContext { public ApplicationDbContext(DbContextOptions options) : base(options) // this will pass along the options from the implementation to the definition { } public DbSet Provinces { get; set; } // specify the table and it's class // to run migrations, run `add-migration ` in the NuGet console // then make the migrations from the console by using `update-database` // to rollback migrations run the command `remove-migration ` } }