Minimal API – Create TodoApi With dotNet 6.0 Preview
October 21, 2021 18:13Pre-requisites :
- dotnet ef tools
dotnet tool
install
--global dotnet-ef
- dotnet dev-certs https –trust
- visual studio code
- Extension
- C#
- C# Extensions
- NuGet Package Manager
Let’s get started
- Create new project with dotnet cli
- dotnet new webapi –n TodoApi
- Run and test the applications
- cd TodoApi && dotnet run
- Stop the application
- ctrl + c
Install these two packages from nuget packages :
- dotnet add package Microsoft.EntityFrameworkCore
- dotnet add package Microsoft.EntityFrameworkCore.InMemory
Comments are closed.