skip to Main Content

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

Get value of dynamic objects in ASP.Net Core

I need to read a value from HTTP response. Here is an example of the response in which I'm trying to fetch (description) value: { "result":{ "code":"200.300.404", "description":"successful" }, "buildNumber":"1f9@2021-12-23 09:56:49 +0000", "timestamp":"2021-12-25 17:22:35+0000", "ndc":"8976eaedf8da" } Here is my code…

VIEW QUESTION
Back To Top
Search