I've such a problem.I added migration but this error occurred:
using Hospital.Core.Entities; using Microsoft.EntityFrameworkCore;namespace Hospital.Repositories.Data { public class ApplicationDbContext : DbContext { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options) { } ////// } }
program.cs:
builder.Services.AddDbContext<ApplicationDbContext>(options => options.UseNpgsql(builder.Configuration.GetConnectionString("HospitalConnection")));
I reinstalled the frameworks. Multiple actions with packages also with package manager