'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?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source