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

111
Views
Falta la clase Startup.cs en .NET 6

Creé Rest Api en .Net 5 y todo funcionaba perfectamente, pero recientemente me cambiaron a .NET 6 y allí me di cuenta de que no hay una clase startup.cs presente y otra cosa es cómo agregar el Contexto DB ?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

En .NET 6, Microsoft eliminó la clase Startup.cs. Ahora, cuando agregue una cadena de conexión, debe usar builder.Services.AddDbContext La forma anterior es services.AddDbContext

Simplemente use builder.Services y luego podrá lograr lo que desea.

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!