Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
Can't find ApplicationDbContext in DbContextOptions

I am new with .net framework, and i am stuck with this ApplicationDbContext, Here is sample of my code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace Rocky.Data
{
public class ProjectDbContext:DbContext
{
    public ProjectDbContext(DbContextOptions<ApplicationDbContext> options): base(options)
    {

    }
}
}
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Your problem is the ApplicationDbContext is not a module it's the class name of the contractor. So replace the ApplicationDbContext with ProjectDbContext. and your problem with be solved.

Here is the code you:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace Rocky.Data
{
public class ProjectDbContext:DbContext
{
    public ProjectDbContext(DbContextOptions<ProjectDbContext> options): base(options)
    {

    }
}
}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!