using Microsoft.EntityFrameworkCore; using static Microsoft.EntityFrameworkCore.DbLoggerCategory; using UserMicroservice.Migrations; namespace UserMicroservice.Models { public class ApplicationDbContext : DbContext { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options) { } public DbSet<User> Users { get; set; } // Add other DbSet properties for other models //use the commands to update the db //dotnet ef migrations add InitialCreate //dotnet ef database update protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); // Model configuration goes here } } }