skip to Main Content

Unable to resolve service for type 'System.Int32' – Asp.net

Is it possible to have interfaces with other paramaters together like here below? I do this because I have private setters and have one constructor. planning constructor (Logic) public Planning( IPlanningDAL planningDAL, IPlanningParticipantDAL planningParticipantDAL, ICategoryCollectionDAL categoryCollectionDAL, ITaskCollectionDAL taskCollectionDAL, ITaskDAL taskDAL,…

VIEW QUESTION

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");…

VIEW QUESTION
Back To Top
Search