Search
 
SCRIPT & CODE EXAMPLE
 

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.
Comment

PREVIOUS NEXT
Code Example
Csharp :: get all properties of an object including children c# 
Csharp :: concatanate two lists in c# 
Csharp :: interop C# save as and replace 
Csharp :: dynamic add event control c# 
Csharp :: c# object is enum 
Csharp :: asp net c# browser cursor wait 
Csharp :: unity subtract class 
Csharp :: c# how to delete all files in directory 
Csharp :: change skybox color unity 
Csharp :: ado net execute sql query 
Csharp :: C# http post request with file 
Csharp :: Unlit shader get the direction of camera UNity 
Csharp :: use or in shell script 
Csharp :: trhow exception if is null c# 
Csharp :: C# checking if a value is a int 
Csharp :: how to set the current user httpcontext.current.user asp.net -mvc 
Csharp :: generate a dropdown list from array data using razor .net mvc 
Csharp :: Palindromic substrings 
Csharp :: dctionary literal c# 
Csharp :: rigidbody.velocity.magnitude 
Csharp :: c# sbyte 
Csharp :: Get replace normal text from word document in C# 
Csharp :: HttpClient .net Core add Certificate 
Csharp :: how to set the server url in dotnet core 
Csharp :: Transpose Matrix C Sharp 
Csharp :: unity fixedupdate 
Csharp :: c# get enum name from value 
Csharp :: can object change color when collided with particles unity 
Csharp :: jq map over array 
Csharp :: c# yes no cancel dialog with icons 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =