- ASP.NET Core with .NET 6
- Entity Framework Core
- SQL Server
- Swagger
- Dependency Injection
- Object-Oriented Programming
- Create Super Hero ✅
- Get Super Hero ✅
- Upgrade Super Hero ✅
- Delete Super Hero ✅
-
Requirements
- You must install the .NET 6 SDK
$ dotnet tool install --global dotnet-ef
- Accessing the project
# Clone this repository
$ git clone https://github.com/muriloolegini/SuperHeroAPI
# Access the project folder on your terminal/cmd
$ cd C:\user\...
# Install or update dependencies
$ dotnet add package Microsoft.EntityFrameworkCore.Design --version 6.0.10
$ dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 6.0.10
- Change the file "appsettings.Development", adding the data from your local bank (Must be SQL Server, I recommend using SQL per-user authentication, if you use windows authentication, need to change the connection data)
# Add a migration. Example:
$ dotnet-ef migrations add CreateSuperHeroTable
# Update migration
$ dotnet-ef database update
# Run the application in development mode
$ dotnet watch run