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

102
Views
Startup.cs class is missing in .NET 6

I have created the Rest Api's in .Net 5 and everything was working perfectly but recently I've been moved to .NET 6 and there I've realized that no startup.cs class is present and another thing is how to add the DB Context?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

In .NET 6 Microsoft has removed the Startup.cs class. Now when you'll add a connection string then you've to use builder.Services.AddDbContext The old way is services.AddDbContext

Just use builder.Services and then you can achieve what you want.

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!