Minimal API implementation example using .NET 6 and C# 10.
Prerequisites: .NET 6 or higher.
# Clone repository
git clone https://github.com/andersonpereiradossantos/dotcore-api-minimal.git
# Change the SQL Server database connection string in the Program.cs file in:
# options.UseSqlServer("Server=YourHost;Database=Company;User Id=YourUser;Password=YourPassword;");
# Run the migrations
> dotnet ef database update
# Run the project
> dotnet run
This project is shared under the MIT license. This means you can modify and use it however you want, even for comercial use. If you liked it, consider marking a ⭐️.
- Writing a Minimal API with .NET 6 (English)
- Escrevendo uma Minimal API com .NET 6 (Brazilian Portuguese)
Anderson Pereira dos Santos