Skip to content

andersonpereiradossantos/dotnet-api-minimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal API in .NET 6

Licence

About code

Minimal API implementation example using .NET 6 and C# 10.

How to run the project

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

License

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 ⭐️.

Articles

Author

Anderson Pereira dos Santos

Linkedin

Github