Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Startup.cs class is missing in .NET 6

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.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #class #missing
ADD COMMENT
Topic
Name
7+5 =