Visual Studio 2022 New Project

Template: ASP.NET Core Web API

Framework: .NET 6.0

Check “Configure for HTTPS

Check “Use controllers (uncheck to use minimal API)” for controller vs minimal API

Check “Enable OpenAPI support” for Swagger OpenAPI support

Entity Framework

Install the following from Nuget Package Manager…

Microsoft.EntityFrameworkCore

Microsoft.EntityFrameworkCore.Design

Microsoft.EntityFrameworkCore.SqlServer

PM> dotnet tool install –global dotnet-ef

Last modified: April 17, 2022

Author

Comments

Write a Reply or Comment