Unable to resolve service DbContext while attempting to activate controller – Asp.net
I have my own DbContext: public class DreamsContext : DbContext { public DbSet<UserAccount> UserAccounts { get; set; } public DbSet<DreamPublication> DreamPublications { get; set; } public DreamsContext(DbContextOptions<DreamsContext> options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity<UserAccount>().ToTable("dreams_user"); modelBuilder.Entity<DreamPublication>().ToTable("dream_publications");…